Skip to content

Instantly share code, notes, and snippets.

@xlab
Created July 24, 2011 09:10
Show Gist options
  • Save xlab/1102429 to your computer and use it in GitHub Desktop.
Save xlab/1102429 to your computer and use it in GitHub Desktop.
[root@sv|~] cat /etc/lighttpd/conf-enabled/10-fastcgi.conf
# /usr/share/doc/lighttpd-doc/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi
server.modules += ( "mod_fastcgi" )
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php5-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "1",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment