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:
tar -zxvf xcache-1.2.2.tar.gz
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:
Finally, restart the webserver with:
service httpd restart
All done. Enjoy your server's (hopefully) improved performance!