From a4fc6ec78de45d34d3c1974f631623e5e4072c6e Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 3 Jan 2013 14:57:08 +0000 Subject: Ticket #2063 Do not enable apc on less than 135MB ram --- etc/rc.php_ini_setup | 14 +++++--------- 1 file 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" -- cgit v1.1