Wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
Sudo tar-xzvf xcache-1.3.0.tar.gz
Cd xcache-1.3.0
Sudo/usr/local/php-5.3.3/bin/phpize
Sudo./configure -- with-php-config =/usr/local/php-5.3.3/bin/php-config
Sudo make
Sudo make install
Sudo cat xcache. ini>/usr/local/php-5.3.3/lib/php. ini [switch to root if permissions are not enough]
Configure php. ini
; Author: zhxia
[Xcache-common]
; Install as zend extension (recommended), normally "$ extension_dir/xcache. so"
; Zend_extension =/usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache. so
; Zend_extension_ts =/usr/local/lib/php/extensions/non-debug-zts-xxx/xcache. so
; Enable the following line.
; Zend_extension =/usr/local/php-5.3.3/lib/php/extension/ no-debug-non-zts-20090626/xcache. so
; For windows users, replace xcache. so with php_xcache.dll
; Zend_extension_ts = c:/php/extensions/php_xcache.dll
; Or install as extension, make sure your extension_dir setting is correct
This line can also be enabled. You can add the xcache module and only remember to restart fpm.
Extension = xcache. so
; Or win32:
; Extension = php_xcache.dll