We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi.
Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file that calls phpinfo();
.
The server log does not show any errors and the HTTP response is 200.
When I request a static html file without any PHP content, there is no problem and all the requests are being served fast.
This is the lighttpd-fcgi Config:
fastcgi.debug = 1
fastcgi.server += ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 7,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "5",
"PHP_FCGI_MAX_REQUESTS" => "5000"
)
))
)
The server is running Debian 7 64 bit.