Thursday, 3 April 2014

ERROR: Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/local/php-5.2.17/bin/php-cgi” failed: No such file or directory

Recently, I encountered the following error after compiling PHP 5.2.17 for a single domain.
=====
ERROR: Caused by SystemException in API_Linux.cpp:444: execve() for program “/usr/local/php-5.2.17/bin/php-cgi” failed: No such file or directory
=====


Then I found that  the file ‘/usr/local/php-5.2.17/bin/php-cgi’ was missing.

I was wondering why ?  the compilation was successful but why it is still showing this error.

Then I found that while configuring I used the following option:
=====
./configure --disable-cgi --other options
=====
.
Always make sure to enable cgi while compiling PHP as suPHP.

So, the final configure option should be as below:
=====
./configure --enable-cgi
====


No comments:

Post a comment

Note: only a member of this blog may post a comment.