Exec PHP from PHP
Posted by: ncatnow
Posted on: 2008-06-16 21:04:00
Hi there,
Running into a strange problem. I have setup my Custom PHP.ini using the instructions in the wiki. I've got the php5.cgi installed in cgi-bin/php.cgi. Apache is using this CGI, confirmed by phpinfo().
The script I am using, phpMotion, tries to execute a php script to convert video files.
I can get other things to execute, such as "ls -la", but I cannot get php to run, using even a very simple script, like echo "hi";
eg> domain.com/test.php tries to exec domain.com/test2.php using php cgi in cgi-bin/php.cgi
I can run php scripts from the shell using this CGI
$: /home/user/domain/cgi-bin/php.cgi -v
php 5.xx
when I run just php from the shell, it tells me version 4. However, my hosting is setup as version 5
Thank you very much for any help
Cheers
Nick