php+bash script problem

If you call a bash script from a php one, be sure that you have the correct permissions. To grant them, you could have to do this command:

setfacl -m u:www-data:rwx /the/path/where/you/have/to/exec/bash