Steps to FAST CGI Support
Go to system -> Administration -> Synaptic Package Manager and select php-cgi
sh /etc/init.d/lighttpd start
sh /etc/init.d/lighttpd stop
Click apply changes
Edit file /etc/lighttpd/lighttpd.conf file to add following things.
First add the module mod_fastcgi (lighttpd provides an interface to a external programs that support the FastCGI interface via this module). Make sure your server.modules loades mod_fastcgi:
server.modules = (
“mod_access”,
“mod_accesslog”,
“mod_fastcgi”,
“mod_rewrite”,
“mod_auth”
)
Add following lines to configuration
fastcgi.server = ( “.php” =>
(( “socket” => “/tmp/php-fastcgi.socket”,
“bin-path” => “/usr/local/bin/php”,
“bin-environment” => (
“PHP_FCGI_CHILDREN” => “16″,
“PHP_FCGI_MAX_REQUESTS” => “10000″
)
))
)
Restart lighttpd server with following command
No comments:
Post a Comment