PDA

View Full Version : Lighttpd + PHP


huwnet
July 10th, 2006, 12:55 PM
I have installed lighttpd, mod_fastcgi and the relevant php files. However when I try to open a php in lighttpd I just get a blank file.

Here is my fastcgi config:

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"bin-path" => "/usr/bin/php5-cgi",
"port" => 9000
)
)
)


Obviously the module is enabled ;)

firecat53
July 12th, 2006, 08:47 PM
Here's my /etc/lighttpd/conf-enabled/10-fastcgi.conf:

fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "8",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)))

Hope that helps!

I managed to get lighttpd working with mysql, php5 (w/ fastcgi) and python (normal cgi).

Good luck! Scott

huwnet
July 30th, 2006, 09:55 AM
Thanks.

Now if only this could be fixed in the default packages :D