install xcache

From WebHostingNeeds.com
Jump to: navigation, search
cd /usr/local/src/
svn co svn://svn.lighttpd.net/xcache/trunk xcache-trunk
cd xcache-trunk
phpize
./configure --enable-xcache
make
make install

make install shows location of the xcache.so 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


Find

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

Replace with xcache.so path (you will find it after install)

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

Find

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]#