How to enable Xcache in cPanel to speed up website?

After you login cpanel, search for "EasyApache" in left column and click on the link
Select "Previously Saved Config" and click on "start customizing"
For both Apache and PHP, click on "next step" button
Look for "xcache for php" and check the box
Click on "save and build"
Allow the build process to finish
To enable xcache, you will need to make changes to php.ini before it can be used by your scripts.
Login into your server using SSH
After you login, enter "pico  /usr/local/lib/php.ini"
Hold ctrl+W and search for "xcache"
Make necessary changes and to enter ctrl+O to save the file
Aftererwards you will need to restart Apache in WHM for changes to take affect.

Here is recommended settings for xcache in cPanel ---  

xcache.admin.pass=""
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="300"
xcache.mmap_path="/dev/zero"
xcache.optimizer="On"
xcache.readonly_protection="Off"
xcache.size="50M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="3600"
xcache.var_count="2"
xcache.var_gc_interval="300"
xcache.var_maxttl="7200"
xcache.var_size="16M"
xcache.var_slots="8K"
xcache.var_ttl="3600"
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

List of Common Available Ports On Cloud And VPS Servers

Inside our Cloud and VPS hosting services we want to make assured our clienteles have the skill...

Cloud Hosting VS. Shared Hosting

Shared hosting is the general hosting solution. But using a shared hosting solution user has to...

How to block IP using .htaccess file?

1) You may block entrance to your website from particular IP addresses using .htaccess file.2)...

How to Delete a cPanel Account From SSH

You can also terminate an account using SSH/command line if wanted using the following script....

How to Delete a cPanel From WHM

Eliminating an existing cPanel account is a very fast and easy process, but be advised this move...