Getting FastCGI To Work (Final Step)
Posted by: GaMerZ
Posted on: 2007-08-12 09:32:00
Hi Guys,
I got problem getting FastCGI to work with my custom compile PHP. I tried the troubleshooting at http://wiki.dreamhost.com/PHP_FastCGI, but it did not work.
I got the error:
In reply to:
[Sun Aug 12 08:27:17 2007] [error] [client 38.114.104.120] FastCGI: comm with (dynamic) server "/home/lesterchan/lesterchan.net/dispatch.fcgi" aborted: (first read) idle timeout (60 sec)
[Sun Aug 12 08:27:17 2007] [error] [client 38.114.104.120] FastCGI: incomplete headers (0 bytes) received from server "/home/lesterchan/lesterchan.net/dispatch.fcgi"
This is what I have in my dispatch.fcgi
In reply to:
#!/bin/sh
export PHPRC=/home/lesterchan/php5/etc/php5/lesterchan.net
export PHP_FCGI_CHILDREN=2
exec /home/lesterchan/lesterchan.net/cgi-bin/php.cgi
And this is what I have for my .htaccess:
In reply to:
AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /dispatch.fcgi
Options +ExecCGI
Any help is appreciated =)