XCache is a fast and stable PHPopcoolcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tested (on linux) and supports the latest versions of all current PHP branches, such as PHP_4_3PHP_4_4PHP...
XCache is a fast and stable PHP opcoolcode cache. it has been well tested and runs stably on high-traffic/high-load production machines. tests (on linux) and supports the latest versions of all current PHP branches, such as PHP_4_3 PHP_4_4 PHP_5_0 PHP_5_1 PHP_5_2 HEAD (6.x), and supports thread security/Windows. it is better than similar opcoolcode caches, for example, it can quickly follow up the PHP version. the following describes how to install the configuration.
1. install xcache
Wget http://xcache.lighttpd.net/pub/Releases/1.3.2/xcache-1.3.2.tar.gz
Tar-zxvf xcache-1.3.2.tar.gz
Cd xcache-1.3.2
Phpize
./Configure -- enable-xcache
Make
Make install www.2cto.com
2. configure xcache
Open the php. ini file and add the following code:
[Xcache-common]
; Change me-64 bit php =>/usr/lib64/php/modules/xcache. so
; 32 bit php =>/usr/lib/php/modules/xcache. so
Zend_extension =/usr/lib64/php/modules/xcache. so
[Xcache. admin]
Xcache. admin. auth = On
Xcache. admin. user = "mOo"
; Xcache. admin. pass = md5 ($ your_password)
Xcache. admin. pass = ""
[Xcache]
Xcache. shm_scheme = "mmap"
Xcache. size = 32 M
Xcache. count = 1
Xcache. slots = 8 K
Xcache. ttl = 3600
Xcache. gc_interval = 300
; Same as aboves but for variable cache
; If you don't know for sure that you need this, you probably don't
Xcache. var_size = 0 M
Xcache. var_count = 1
Xcache. var_slots = 8 K
Xcache. var_ttl = 0
Xcache. var_maxttl = 0
Xcache. var_gc_interval = 300
; N/A for/dev/zero
Xcache. readonly_protection = Off
Xcache. mmap_path = "/dev/zero"
Xcache. cacher = On
Xcache. stat = On
Note that zend_extension =/usr/lib64/php/modules/xcache. so is the correct path.