How to Install XCache on a cPanel Server (Apache)

We are frequently asked if it's possible, and how, to install XCache on servers that are already running cPanel. On cPanel servers, web server modules are managed with a built-in tool called EasyApache, however this tool features EAccelerator and does not provide an easy option to install XCache. 

Nonetheless, it is possible to install XCache alongside cPanel. It is recommended not to install or enable any other caches or accelerators, such as EAccelerator or APC, with cPanel. 

To begin, access your server as root and run the following commands:

wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz

tar -zxvf xcache-1.2.2.tar.gz

cd xcache-1.2.2

phpize
./configure –enable-xcache
make
make install

Locate your php.ini file, usually located at: /usr/local/lib/php.ini

Add the following line to the end of the file, then save and close the file:

extension=xcache.so

Finally, restart the webserver with:

service httpd restart

All done. Enjoy your server's (hopefully) improved performance! 

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to Access a Linux Server via SSH Terminal

When Linux dedicated servers are provisioned, they are often setup with a minimal OS...

How To Check if a Server is Online/Offline (Ping)

Is your server offline, or do you suspect it might be?The first step toward resolving the issue...

How to Ping a Linux Server (Windows/Mac/Linux)

A very simple network connectivity test is to employ ping (ICMP) packets to test the...

HELP! What should I do if my server is offline?

First, don't panic! If your server is really offline, you should be able to get it up and...

How to Trace Route an IP Address (Windows/Mac/Linux)

Performing a trace route is a common test used to view the status of individual "hops" along...