summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-03-15 14:58:33 +0000
committerErmal <eri@pfsense.org>2012-03-15 14:58:33 +0000
commita67b9fb95514803bc92497b42f070ce9b7e6f551 (patch)
treea483df5767ef0a37e758dc38be9b39c4cfc62752
parentb0b2243137e89918f5259486c31d73943ae83712 (diff)
downloadpfsense-a67b9fb95514803bc92497b42f070ce9b7e6f551.zip
pfsense-a67b9fb95514803bc92497b42f070ce9b7e6f551.tar.gz
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.
-rw-r--r--etc/inc/system.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 2be5f48..dc09526 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -792,7 +792,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;
@@ -800,7 +800,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",
),
@@ -808,7 +808,7 @@ EOC;
} else
$bin_environment = <<<EOC
"bin-environment" => (
- "PHP_FCGI_CHILDREN" => "$max_procs",
+ "PHP_FCGI_CHILDREN" => "0",
"PHP_FCGI_MAX_REQUESTS" => "500"
),
EOC;
OpenPOWER on IntegriCloud