summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-07-26 18:49:45 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-07-26 18:49:53 -0400
commitf4ebc84ad91aab551ee568ab6b5c5fc0f06993d3 (patch)
treedecf63e0ebb427ec9b733b23db8abb72d9975535 /etc
parentaa10aadcd31dee790be37a4695b752162f62c408 (diff)
downloadpfsense-f4ebc84ad91aab551ee568ab6b5c5fc0f06993d3.zip
pfsense-f4ebc84ad91aab551ee568ab6b5c5fc0f06993d3.tar.gz
Turn off fastcgi for installations with less than 65 megabytes of ram
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 9217bd5..38837e1 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -598,7 +598,11 @@ function system_generate_lighty_config($filename,
$memory = get_memory();
$avail = $memory[0];
- if($avail > 0 and $avail < 98) {
+ if($avail > 0 and $avail < 65) {
+ $fast_cgi_enable = false;
+ }
+
+ if($avail > 65 and $avail < 98) {
$max_procs = 1;
$max_requests = 1;
}
OpenPOWER on IntegriCloud