I'm trying to execute a perl script from PHP using exec() (I need all of it's output.) I really can't figure out why the script won't execute when called from PHP.
The script behaves as expected when called from the command line.
I get useful and correct output from exec('whoami') and exec('perl -V').
I get all indications that the script didn't run when I run exec('perl /full/path/to/my/script/'). (I know this because exec() returns false and a file that the script is supposed to create doesn't get created.)
The script has permissions of 777.
The return code is always 2, which doesn't really mean anyting to me.
Using ini_get() I can see, for sure, that safe_mode and open_basedir are off.
I'm doing this on an RH7.3 box with PHP4.3.4. The server has Plesk, BTW, if it matters.
Thanks!
-Roy