Installing Xcache is easy if you are on Cpanel hosting.
Step 1 : Login to the server using your favorite SSH program.
Step 2 : Type the following command :
This command will compile Xcache for you. Easy peasy!
Step 3 : To insure you have installed it correctly simply type :
If you see something like this : “with XCache Cacher v3.0.1, Copyright (c) 2005-2013, by mOo” that’s mean it’s installed correctly.
You can also install some other extensions using the same way. Available extensions can be seen using the following command :
wich will output the following available extensions :
EAccelerator
IonCubeLoader
Zendopt
Xcache
SourceGuardian
PHPSuHosin
You can also Uninstall any extension with the same command. The following command will uninstall Xcache for instance :
If you want to get the status of the xcache extension on your server use the following command :
If you don’t have Cpanel you can install X-cache manually by using the following commands (the green ones).
1- wget http://xcache.lighttpd.net/pub/Releases/3.0.1/xcache-3.0.1.tar.gz ( You need to change the URL path if you want other versions , the one I used is the latest xcache version now though )
2-tar -zxvf xcache-3.0.1.tar.gz
3-cd xcache*
4-yum install -y gcc make
5-phpize
6-./configure –enable-xcache –with-php-config=/usr/local/bin/php-config
7- make
8- make install
9- cat xcache.ini >> /usr/local/lib/php.ini ( Replace /usr/local/lib/php.ini with the path of your php.ini file )
The command number 9 will copy the default Xcache settings into your php.ini file. You can edit these settings if you know what you are doing and you need to do some tweaks.
10- service httpd restart ( To restart the Appache server )
11- php -v |grep XCache ( Just to check if xcache was installed correctly or no )
If you can see the following :
with XCache v3.0.1, Copyright (c) 2005-2013, by mOo
with XCache Cacher v3.0.1, Copyright (c) 2005-2013, by mOo
Then you are good to go! . wasn’t that hard , isn’t it?

