FCGI Problem
Posted by: Darren996
Posted on: 2007-01-25 09:39:00
Hi,
I am having a problem with FCGI.
When I try and run index.php as a FCGI script I get a 500 error. Does anybody see anything obviously wrong here?
index.php
<html>
<head>
<title>Vortex</title>
</head>
<body>
<p>This is a test!</p>
<?php
$value = $value + 1;
echo "<p>Value is ".$value."</p>";
?>
</body>
</html>
.htaccess
#Everything rem'd out works (plain old Apache)
#Lighttpd works
#AddType application/x-httpd-php .php
#FCGI no worky
#Options +ExecCGI
#AddHandler fastcgi-script fcg fcgi fpl
#AddHandler php5-fastcgi .php
#Action php5-fastcgi /php5-wrapper.fcgi
Note I have rem'd everything out to make sure it works. If I unrem the
lighttp section it works. If I unrem the #FCGI section it doesn't work.
The wiki article says:
AddHandler fastcgi-script fcg fcgi fpl
when I think it should be this:
AddHandler fastcgi-script .fcg .fcgi .fpl
..or maybe it doesn't matter, either way it doesn't work.
php5-wrapper.fcgi
#!/bin/sh
export PHP_FCGI_CHILDREN=3
exec /dh/cgi-system/php5.cgi
I have done this test exactly to the dreamhost wiki as far as I can tell. There has to be something else wrong.
Thanks,
Darren