Skip to content

Instantly share code, notes, and snippets.

@582033
Last active June 22, 2016 06:34
Show Gist options
  • Save 582033/ad9d6452ae337d1476b0bc7be8bc793b to your computer and use it in GitHub Desktop.
Save 582033/ad9d6452ae337d1476b0bc7be8bc793b to your computer and use it in GitHub Desktop.
lighttpd.conf
server.modules += ( "mod_fastcgi" )
server.port = "8000"
server.document-root = "/var/root/foo/www"
index-file.names = ( "index.php", "index.html" )
fastcgi.server = ( ".php" =>
(( "socket" => "127.0.0.1:9000",
"bin-path" => "/usr/bin/php-cgi",
"min-procs" => 1,
"max-procs" => 1,
"max-load-per-proc" => 4,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "2",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => ( "PATH", "SHELL", "USER" ),
"broken-scriptfilename" => "enable",
"idle-timeout" => 20
))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment