Running Cordova via a shell script - permission problem
问题 I have a shell script (called test.sh) which is called from PHP. Within the script I simply have: #!/bin/bash echo $(whoami) cordova platform version ios If I call test.sh from within terminal it works fine and returns the cordova ios version. If I try to call test.sh from with PHP I get: cordova: not found I have altered apache to run under my username instead of _www but that hasnt worked. Can anyone point me in the right direction as I'm guessing it is a permissions issue? I have now