diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 02:31:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-18 02:31:45 +0000 |
commit | 49fdb0d87e01e5075b5b12f0578a5d977c3973e3 (patch) | |
tree | b55731bd50dd604dd1aebcc831960b341e163a82 /etc/inc/system.inc | |
parent | ba59730f690a7031663f5e64264d8ac6d57ab444 (diff) | |
download | pfsense-49fdb0d87e01e5075b5b12f0578a5d977c3973e3.zip pfsense-49fdb0d87e01e5075b5b12f0578a5d977c3973e3.tar.gz |
Allow tuning of max php fcgi requests
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index f8a1259..d014e40 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -407,7 +407,7 @@ EOD; function system_generate_lighty_config($filename, $cert, $key, $pid_file, $port = "", $document_root = "/usr/local/www/", $cert_location = "cert.pem", - $max_procs) { + $max_procs, $max_requests = "5") { /* create directory to hold compressed items */ if(!is_dir("/tmp/lighttpd/cache/compress/")) @@ -563,10 +563,10 @@ fastcgi.server = ( ".php" => "min-procs" => 1, "max-procs" => {$max_procs}, "max-load-per-proc" => 1, - "idle-timeout" => 5, + "idle-timeout" => 1, "bin-environment" => ( "PHP_FCGI_CHILDREN" => "{$max_procs}", - "PHP_FCGI_MAX_REQUESTS" => "100" + "PHP_FCGI_MAX_REQUESTS" => "{$max_requests}" ), "bin-path" => "/usr/local/bin/php" ) |