summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-28 00:10:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-28 00:10:01 +0000
commit3d77d4c435e57cdf74e86ab4a18e87e218af5087 (patch)
treeb2f28d3a29824e38f03c1186aa9334096f7913a2 /etc
parentd93e8b5f72609323506d70e30bd170998978c049 (diff)
downloadpfsense-3d77d4c435e57cdf74e86ab4a18e87e218af5087.zip
pfsense-3d77d4c435e57cdf74e86ab4a18e87e218af5087.tar.gz
* Do not invoke fastcgi on memory constrained platforms (<72 megs)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc9
1 files changed, 8 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 8acac70..543a99a 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -529,7 +529,14 @@ function system_generate_lighty_config($filename, $cert, $key, $pid_file,
$lighty_port = $port;
else
$lighty_port = "80";
-
+
+ $memory = get_memory();
+ $avail = $memory[0];
+
+ if($avail > 0 and $avail < 72) {
+ $fast_cgi_enable = false;
+ }
+
if($fast_cgi_enable == true) {
$module = "\"mod_fastcgi\", \"mod_cgi\"";
$cgi_config = "";
OpenPOWER on IntegriCloud