I have been cracking my head several days over this and would really appreciate any help on this please. I've installed FCGI 2.4.0 and mod_fastcgi 2.4.2 for Apache 1.3.x as a DSO.
My addition to httpd.conf is as follows:
/tmp/fcgi_ipc is owned by nobody with 755 permissions.
AddHandler fastcgi-script .fcgi
FastCgiConfig -autoUpdate -singleThreshold 100 -killInterval 300 -idle-timeout 240 -pass-header HTTP_AUTHORIZATION
Action application/x-httpd-fastphp /php.fcgi
AddType application/x-httpd-fastphp .php .php4 .php3
And php.fcgi is a shell script in each user's public_html directory with the following code:
php-cgi -v is as follows:
I'm currently getting the error below in my error_log and on the front end, I get a 500 Internal Server Error via the browser when I try to read PHP files off Apache now. Any help from those who have had this setup working would be a great help here. Have been reading the manuals and on google but they seem a lil sketchy or otherwise for Apache 2 config.
PHP 4.4.2 (cgi-fcgi) (built: Mar 28 2006 22:06:09)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies
Thank you so much.
[warn] FastCGI: (dynamic) server "/home/mainuser/public_html/php.fcgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds