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