Hi,
I am trying to run a script using the php exec command. It is called 'Drush'. You might be familiar with it. It's a way to perform certain tasks on a Drupal site using the command line (bypassing Apache).
Anyway, when executing my drush command in the terminal manually it works just fine. But when executing it using exec() it doesn't seem to be able to find Drush. I set all the permission of the directory and all its contents to 777 and it is still not working. I am also calling drush using the entire path and not just drush as specified in .bash-profile.
Example:
/Applications/drush/drush --root="/Applications/MAMP/htdocs" --uri="client2.drupal.local" usu "nodes"
Where usu is a custom command and nodes is an argument. Again.., this works just fine when run manually in the terminal. Just not when executed using exec().
I tried executing 'ls' and that does work...
Does anybody have any idea what could be the problem here?
Thanks!
Roderick