Several possibilities:
- You have safe mode enabled. That way, only
exec()
is working, and then only on executables insafe_mode_exec_dir
exec
andshell_exec
are disabled in php.ini- The path to the executable is wrong. If the script is in the same directory as the php file, try
exec(dirname(__FILE__) . '/myscript.sh');