Project

General

Profile

« Previous | Next » 

Revision a4fc6ec7

Added by Ermal LUÇI over 12 years ago

Ticket #2063 Do not enable apc on less than 135MB ram

View differences:

etc/rc.php_ini_setup
48 48

  
49 49
# Calculate APC SHM size according 
50 50
# to detected memory values
51
if [ "$AVAILMEM" -lt "65" ]; then
52
	APCSHMEMSIZE="1M"
53
fi
54
if [ "$AVAILMEM" -lt "96" ]; then
55
	APCSHMEMSIZE="5M"
56
fi
57 51
if [ "$AVAILMEM" -le "128" ]; then
58
	APCSHMEMSIZE="10M"
52
	APCSHMEMSIZE="5M"
59 53
fi
60 54
if [ "$AVAILMEM" -gt "128" ]; then
61 55
	APCSHMEMSIZE="15M"
......
82 76

  
83 77
# Define php modules.  Do not add .so, it will  
84 78
# be done automatically by the script below.
85
PHPMODULES="apc"
86
PHPMODULES="$PHPMODULES standard"
79
PHPMODULES="standard"
80
if [  "$AVAILMEM" -gt 135 ]; then
81
	PHPMODULES="$PHPMODULES apc"
82
fi
87 83
# Config read/write
88 84
PHPMODULES="$PHPMODULES xml libxml dom"
89 85
PHPMODULES="$PHPMODULES simplexml xmlreader xmlwriter"

Also available in: Unified diff