I have a shell script in the following dir which is outside of the webroot :
/usr/share/myshellscript.sh
And I want to be able to run it when called from a php file located at :
/var/www/html/myphpscript.php
How do I navigate the php script to the correct directory where it can run the shell script?
I've tried :
exec('/usr/share/myshellscript.sh');
But nothing is happening?
I've tested the .sh script on the server itself and it's working fine, just can't get php to execute it.
System : Ubunutu 14.04 webserver / php 5.5.9-1