install xcache

Jump to: navigation, search
cd /usr/local/src/
svn co svn:// xcache-trunk
cd xcache-trunk
./configure --enable-xcache
make install

make install shows location of the installed

[[email protected] xcache-trunk]# make install
Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20060613/
[[email protected] xcache-trunk]#

Copy configuration file to php.ini

cat xcache.ini >> /etc/php.ini

Edit php.ini file

vi /etc/php.ini


;; install as zend extension (recommended), normally "$extension_dir/"
zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/

Replace with path (you will find it after install)

;; install as zend extension (recommended), normally "$extension_dir/"
zend_extension = /usr/lib/php/extensions/no-debug-non-zts-20060613/


zend_extension_ts = c:/php/extensions/php_xcache.dll

and comment the line or remove it

Now it will show php -v

[[email protected] xcache-trunk]# php -v
PHP 5.2.6 (cli) (built: May 14 2008 21:24:50)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with XCache v2.0.0-dev, Copyright (c) 2005-2007, by mOo
[[email protected] xcache-trunk]#