Hello
I have a problem with apache 2.2.8, mod_fcgid 2.2 and php-cgi 5.2.6.
The php-cgi processes which should be preforked just die and are not able to produce output.
I get 503 Service Temporarily Unavailable error and error_log says:
Code:
[Sat Mar 15 20:31:48 2008] [notice] mod_fcgid: call /var/www/localhost/htdocs/mysql/index.php with wrapper /var/www/localhost/cgi-bin/php5
[Sat Mar 15 20:31:49 2008] [notice] mod_fcgid: call /var/www/localhost/htdocs/mysql/index.php with wrapper /var/www/localhost/cgi-bin/php5
[Sat Mar 15 20:31:49 2008] [notice] mod_fcgid: process /var/www/localhost/htdocs/mysql/index.php(6100) exit(server exited), terminated by calling exit(), return code: 255
[Sat Mar 15 20:31:49 2008] [notice] mod_fcgid: process /var/www/localhost/htdocs/mysql/index.php(6097) exit(server exited), terminated by calling exit(), return code: 255
I have tested the wrapper from command line and works.
/var/www/localhost/cgi-bin/php5 -v says:
Code:
PHP 5.2.6RC1-pl1-gentoo with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Mar 14 2008 20:59:48)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with Suhosin v0.9.23, Copyright (c) 2007, by SektionEins GmbH
so the fcgi support is available.
The apache runs in prefork mpm, the modules mod_fcgid and mod_suexec are loaded and the configuration of the vhost is:
Code:
<VirtualHost *:80>
ServerAlias some.site.com
ServerAdmin admin@some.site.com
DocumentRoot /var/www/some.site.com/htdocs
# PHP SUEXEC
SuexecUserGroup #3000 #3000
<Directory /var/www/some.site.com/htdocs>
AddHandler fcgid-script .php .phtml .php5 .php4
FCGIWrapper /var/www/localhost/cgi-bin/php5 .php
FCGIWrapper /var/www/localhost/cgi-bin/php5 .phtml
FCGIWrapper /var/www/localhost/cgi-bin/php5 .php5
FCGIWrapper /var/www/localhost/cgi-bin/php4 .php4
Options ExecCGI
</Directory>
DefaultMaxClassProcessCount 1
DefaultMinClassProcessCount 1
</VirtualHost>
I have been battling with this for a day and still cant find the solution. Googling doesnt find anything relevant. Your help would be very appreciated.
Thank you.