Where to set "PHP_FCGI_MAX_REQUESTS" (lighttpd)
I want to setup the max requests to keep my system RAM from filling up when there is a memory leak.
But I dont know where it is.
/etc/lighttpd/mod_fastcgi.conf:
fastcgi.server = ( ".php" =>
(( "socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 10,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "1000"
),
"broken-scriptfilename" => "enable"
))
)
It works fine for me.
Lighttpd - Docs:PerformanceFastCGI - lighty labs