Install XCache PHP5

XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load. It is tested (on linux) and supported on all of the latestPHP cvs branches such as PHP_4_3 PHP_4_4 PHP_5_1 PHP_5_2 HEAD(6.x).

Luckily xcache module are availabe on ubuntu apt-get (php5-xcache version  1.2.1-3 ), just run this command

# apt-get install php5-xcache
after it is finished just type dpkg-l to see the modules

# dpkg -l | grep xcach
ii  php5-xcache                           1.2.1-3                               Fast, stable PHP opcode cacher

And then restart your apache

# /etc/init.d/apache2 restart
* Restarting web server apache2

and check  your php is it installed with xcache or not

# php -v
PHP 5.2.4-2ubuntu5.6 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 17 2009 14:31:37)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with XCache v1.2.1, Copyright (c) 2005-2007, by mOo

xcache2

xcache1

Leave a comment