How to install XCache on plesk server(linux)


Installation :

— Login as root
# cd /usr/local/src

— Download the source file. You can get from http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
# wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz

–Extract the tar file :
# tar -zxvf xcache-1.3.0.tar.gz

— Go to the Directory
# cd xcache-1.3.0

— Run :
# phpize
# ./configure
# make
# make install

— Then copy from xcache-1.3.0/xcache.ini into /etc/php.d/axcache.ini (use axcache to avoid problems with any zend extensions (Ioncube, Zend etc))
# cp xcache-1.3.0/xcache.ini /etc/php.d/axcache.ini

— Edit /etc/php.d/axcache.ini and correct the path for xcache.so (to load from correct place).

# vi /etc/php.d/axcache.ini

— Restart apache

# /etc/init.d/httpd restart

— check with php -v if is loaded.
It should show:
PHP 5.2.11 (cli) (built: Sep 23 2009 19:53:09)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with XCache v1.2.2, Copyright (c) 2005-2007, by mOo

If apache not restart, see if the problem is not with Zend Optimizer and XCache.

3 Responses to “How to install XCache on plesk server(linux)”

  1. Thank you so much !!!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: