How to install and enable xcache on a cPanel server (centos)

xcache

Xcache ccan help improve a websites performance and speed it up. It can be enabled in cPanel by using Easy Apache. But after it is enabled, you still have to make a few changes to your php.ini in order to make use of it.

To install xcache:

Log into your cPanel server as the root user and click on “EasyApache”.
Select “Previously Saved Config” and click on “start customizing based on profile”. This is important because it loads your last saved configuration, which is probably what you’re using now.
On the Apache screen, leave it the way it is and click next. Do the same for PHP (just click next)
Look for “xcache for php” and check the box next to it to enable it. This will disabe EAccelerator automatically if you do have it enabled already.
Click on “save and build”. This will take a few minutes. It’s better that you do not leave this page so you can see when it completes. When it’s done you will get a pop up letting you know.

To Enable Xcache

Login into your server using SSH as the root user
After you login, type “nano /usr/local/lib/php.ini”
Hold ctrl+W on your keyboard and search for “xcache”. This will bring you to the xcache section of your php.ini

These are some recommended settings for xcache that you should change to enable xcache on your server:

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″

Once you have made those changes, press CTRL+X to exit. You will be asked if you want to save. Press ‘Y’. Then, press enter to keep the file name the same.
Now when you return to your primary shell screen, restart apache so the changes take place:
service httpd restart

Now your xcache is installed and enabled on your server

How to install and enable xcache on a cPanel server (centos)
Written by: AFRIDA YANTI
Reting: 4.9


Cheap Best Hosting is a leading provider of web hosting, shared hosting, resellers hosting, virtual private servers, vps hosting, dedicated servers and domain name registration.


Follow me on Google+ | Twitter | Facebook | Linkedin | YouTube

Share This Post

Recent Articles

Leave a Reply

© 2017 Cheap Best Hosting Blog. All rights reserved. · Entries RSS · Comments RSS
Hosting By Cheap Best Hosting