For example, when I try to execute
$output=shell_exec('ls -l');
echo "<pre>$output</pre>";
It succesfully prints the output of 'ls -l'.
However, I cannot run a shell script which simply creates a file:
shell_exec('sh /home/ubuntu/Desktop/myScript.sh');
Is it about user access permissions defined in apache?
How can I fix it?