Home >Backend Development >PHP Tutorial >Specific steps to compile and install xcache for php5.3 under ubuntu_PHP tutorial
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 [If the permissions are not enough, switch to root]
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
;You can also enable the following line
;zend_extension=/usr/local/php-5.3.3/lib/php/extensions/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
; You can also enable this line, you can add the xcache module. To modify it, just remember to restart fpm
extension = xcache.so
;; or win32:
; extension = php_xcache.dll