summaryrefslogtreecommitdiffstats
path: root/etc/rc.php_ini_setup
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-03 14:57:08 +0000
committerErmal <eri@pfsense.org>2013-01-03 14:57:27 +0000
commita4fc6ec78de45d34d3c1974f631623e5e4072c6e (patch)
tree86e838abb4a30149585b484303b49e2c3b8eec33 /etc/rc.php_ini_setup
parent8a0f6ca13d5c28d34f2f0b50f7901535c6ba9ac4 (diff)
downloadpfsense-a4fc6ec78de45d34d3c1974f631623e5e4072c6e.zip
pfsense-a4fc6ec78de45d34d3c1974f631623e5e4072c6e.tar.gz
Ticket #2063 Do not enable apc on less than 135MB ram
Diffstat (limited to 'etc/rc.php_ini_setup')
-rwxr-xr-xetc/rc.php_ini_setup14
1 files changed, 5 insertions, 9 deletions
diff --git a/etc/rc.php_ini_setup b/etc/rc.php_ini_setup
index 7a55b63..31ec24b 100755
--- a/etc/rc.php_ini_setup
+++ b/etc/rc.php_ini_setup
@@ -48,14 +48,8 @@ fi
# Calculate APC SHM size according
# to detected memory values
-if [ "$AVAILMEM" -lt "65" ]; then
- APCSHMEMSIZE="1M"
-fi
-if [ "$AVAILMEM" -lt "96" ]; then
- APCSHMEMSIZE="5M"
-fi
if [ "$AVAILMEM" -le "128" ]; then
- APCSHMEMSIZE="10M"
+ APCSHMEMSIZE="5M"
fi
if [ "$AVAILMEM" -gt "128" ]; then
APCSHMEMSIZE="15M"
@@ -82,8 +76,10 @@ fi
# Define php modules. Do not add .so, it will
# be done automatically by the script below.
-PHPMODULES="apc"
-PHPMODULES="$PHPMODULES standard"
+PHPMODULES="standard"
+if [ "$AVAILMEM" -gt 135 ]; then
+ PHPMODULES="$PHPMODULES apc"
+fi
# Config read/write
PHPMODULES="$PHPMODULES xml libxml dom"
PHPMODULES="$PHPMODULES simplexml xmlreader xmlwriter"
OpenPOWER on IntegriCloud