Here is the stable version of the 1.2.2 version, 2.0 version of the instability.
wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
TAR-ZXF xcache-1.2.2.tar.gz
CD XCache
Phpize
./configure--enable-xcache
Make
Make install
Record the installation directory of the XCache.
Edit the php.ini file, add XCache as the Zend extension.
[Xcache-common]
;; Install as Zend Extension (recommended), normally "$extension _dir/xcache.so"
zend_extension =/Path/xcache.so
;; or install as extension, make sure your extension_dir setting are correct
; Extension = 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 = 32M
Xcache.count = 1
Xcache.slots = 8K
Xcache.ttl = 3600
Xcache.gc_interval = 300
; Same as aboves but for variable cache
; If you don't know for sure so need this and you probably don ' t
Xcache.var_size = 0M
Xcache.var_count = 1
Xcache.var_slots = 8K
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
Then restart the Web server.
Php-v Test If there is a display XCache loading succeeded
Installing PHP Accelerator components under Linux XCache