Hello.
I have bash script with following:
#!/bin/bash
[bla-bla]
echo "`which mkdir` -p /var/www/test1"
`which mkdir` -p /var/www/test1
and I call this script from my php page:
<?php
$output = shell_exec('/usr/bin/my-script.sh');
echo "<pre>$output</pre>";
?>
and i got following output
"/bin/mkdir -p /var/www/test1", i.e. everything should be fine, BUT folder is not created.
when i'm trying to run shell script from shell - all OK, folder created.
apache (which runs my php script) runs unded www-data user who has permission to run my shell script and create folders (i've tested it like this: su www-data && ./my-script.sh).
so, i cannot guess what is wrong
