[code]hi,
i’ve built my own php5 cgi/fcgi instannce.
cd /mnt/local/home/USERNAME/public_html/cgi-bin
./php-cgi -v
PHP 5.2.7-dev (cgi-fcgi) (built: Jun 11 2008 17:28:49)
Copyright © 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright © 1998-2008 Zend Technologies
i’m trying to get it to run under FCGI @ DH …
reading here,
http://wiki.dreamhost.com/index.php/PHP_FastCGI
http://wiki.dreamhost.com/FCGI#My_FastCGI_Isn.27t_working
i’ve,
cat > $HOME/public_html/cgi-bin/php5-wrapper.fcgi << EOF
#-------------------------#
#!/bin/bash
export PHP_FCGI_CHILDREN=3
exec /cgi-bin/php-cgi
EOF
#-------------------------#
and,
chmod 0750 $HOME/public_html/cgi-bin/php5-wrapper.fcgi
also, in “~/public_html/.htacess”,
…
Options +ExecCGI
AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php5-wrapper.fcgi
for testing,
cat ~/public_html/admin/info.php
<?php phpinfo (); ?>then, browse to:
@ BROWSER, i get:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, webmaster@edge.USERNAME.net and inform
them of the time the error occurred, and anything you might have done that may
have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an
ErrorDocument to handle the request.
and @ APACHE ERROR LOG:
[Thu Jun 12 11:12:20 2008] [error] [client #.#.#.#] FastCGI: comm with (dynamic)
server “/mnt/local/home/USERNAME/public_html/cgi-bin/php5-wrapper.fcgi” aborted:
(first read) idle timeout (60 sec)
[Thu Jun 12 11:12:20 2008] [error] [client #.#.#.#] FastCGI: incomplete headers
(0 bytes) received from server
"/mnt/local/home/USERNAME/public_html/cgi-bin/php5-wrapper.fcgi"
[Thu Jun 12 11:12:20 2008] [error] [client #.#.#.#] File does not exist:
/mnt/local/home/USERNAME/public_html/internal_error.html
i’m ‘close’, but clearly something’s not right …
any hints?
[/code]