From 56ef4d26e8a99b5b7918f4e94cde6cadad3d429e Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 4 Jan 2013 09:04:25 +0000 Subject: Always use fastcgi since the requirement is the same anyhow --- etc/inc/system.inc | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'etc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 8fc6742..633abbe 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -759,10 +759,6 @@ function system_generate_lighty_config($filename, $memory = get_memory(); $avail = $memory[0]; - if($avail > 0 and $avail < 65) { - $fast_cgi_enable = false; - } - // Ramp up captive portal max procs // Work relative to the default of 2, for values that would be >2. if($captive_portal == true) { @@ -781,17 +777,10 @@ function system_generate_lighty_config($filename, if($avail > 383) { $max_procs += 3; } - } - - if ($avail > 0 and $avail < 128) { - $bin_environment = << ( - "PHP_FCGI_CHILDREN" => "1", - "PHP_FCGI_MAX_REQUESTS" => "500", - ), + } else if ($avail > 135) + $max_procs = 2; -EOC; - } else if ($captive_portal == true) { + if ($captive_portal == true) { $bin_environment = << ( "PHP_FCGI_CHILDREN" => "{$max_procs}", @@ -802,7 +791,7 @@ EOC; } else $bin_environment = << ( - "PHP_FCGI_CHILDREN" => "{$max_procs}", + "PHP_FCGI_CHILDREN" => "1", "PHP_FCGI_MAX_REQUESTS" => "500" ), EOC; @@ -814,7 +803,6 @@ fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "{$g['tmp_path']}/php-fastcgi.socket", - "min-procs" => 0, "max-procs" => {$max_procs}, {$bin_environment} "bin-path" => "/usr/local/bin/php" -- cgit v1.1