Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Flashwit

    (@flashwit)

    It’s the Economy Linux Hosting plan.

    Thread Starter Flashwit

    (@flashwit)

    I may not know exactly what I’m doing, but I did try running the code again that you showed but I just replaced the ‘which /usr/bin/git’ section with just ‘git’ and it still said the command wasn’t found.

    <?php echo exec( 'whoami' ); 
    
    exec( 'git 2>&1', $output, $return );
    var_dump( $output );
    var_dump( $return );?>

    Output

    safew0rdarray(1) { [0]=> string(26) "sh: git: command not found" } int(127)

    safew0rd is the username of the ftp account

    But yeah, you’re right, the user seems to have no idea that git is installed. For fun, I installed Gitium to see what it would say, and it also has no idea where git is.

    Thread Starter Flashwit

    (@flashwit)

    It’s running as my ftp user which definitely has access to everything.

    On the other hand, the which command is not available which makes me suspect that GoDaddy has disabled a ton of stuff for their shared hosting plans.

    Sorry about saying that ‘which git’ has previously returned the path I noted above as that is what I had been told by someone else involved in our website.

    I have however now run ‘whereis git’, ‘type git’, etc. and they all say ‘/usr/bin/git’ so it must be correct. It’s possible then that Revisr will simply not be able to run since it may use commands via exec that GoDaddy has disabled.

    Thread Starter Flashwit

    (@flashwit)

    I tried manually running ‘git init’ in the folder that has wp-config in it but Revisr doesn’t seem to be detecting that either. Is that where that should be run?

    Thread Starter Flashwit

    (@flashwit)

    Hmm yeah, nothing has changed on the Help tab since defining the path. So this most likely means an incorrect path still?

    I’ll try and figure out where it’s hiding then although it seems like it should be right.

Viewing 5 replies - 1 through 5 (of 5 total)