mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set FCGI_CHILDREN to 0 since it does not make sense php to manage itself when lighttpd is doing so. This makes it possible to recover from 550-Internal... error.
This commit is contained in:
parent
e8e2ffbd33
commit
f5b8bdbfb2
@ -856,7 +856,7 @@ function system_generate_lighty_config($filename,
|
||||
if($captive_portal == true) {
|
||||
$bin_environment = <<<EOC
|
||||
"bin-environment" => (
|
||||
"PHP_FCGI_CHILDREN" => "$max_procs",
|
||||
"PHP_FCGI_CHILDREN" => "0",
|
||||
"PHP_FCGI_MAX_REQUESTS" => "500"
|
||||
),
|
||||
EOC;
|
||||
@ -864,7 +864,7 @@ EOC;
|
||||
} else if ($avail > 0 and $avail < 128) {
|
||||
$bin_environment = <<<EOC
|
||||
"bin-environment" => (
|
||||
"PHP_FCGI_CHILDREN" => "$max_procs",
|
||||
"PHP_FCGI_CHILDREN" => "0",
|
||||
"PHP_FCGI_MAX_REQUESTS" => "2",
|
||||
),
|
||||
|
||||
@ -872,7 +872,7 @@ EOC;
|
||||
} else
|
||||
$bin_environment = <<<EOC
|
||||
"bin-environment" => (
|
||||
"PHP_FCGI_CHILDREN" => "$max_procs",
|
||||
"PHP_FCGI_CHILDREN" => "0",
|
||||
"PHP_FCGI_MAX_REQUESTS" => "500"
|
||||
),
|
||||
EOC;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user