To install Xcache on cpanel server, simply run easyapache and select xcache from php module.
To configure Xcache open ” /usr/local/lib/php.ini ” with you preferred editor and set/change some required environment variables: (Scroll down and find xcache section)
- xcache.size="64M" (xcache.size="32M" for OpenVZ machine with Opened files limitations)
– xcache.var_size=”4M” (xcache.var_size=”2M” for OpenVZ machine with Opened files limitations)
- xcache.mmap_path="/tmp/xcache" instead of: xcache.mmap_path="/dev/zero" if you get the error “/dev/zero: No space left on device” in the apache error.log. On a OpenVZ virtual machine it should be set to “/tmp/xcache” as /dev/zero might not work correctly in a virtual machine:
When you have done all this, restart Apache / httpd service.