How To Install XCache for PHP on CentOS


For those of you who didn’t know, XCache is a open-source opcode cacher, which means that it accelerates the performance of PHP on servers. It optimizes performance by removing the compilation time of PHP scripts by caching the compiled state of PHP scripts into the shm (RAM) and uses the compiled version straight from the RAM. This will increase the rate of page generation time by up to 5 times as it also optimizes many other aspects of php scripts and reduce server load. In this tutorial we will show you how to install xCache on a CentOS.

Install XCache for PHP on CentOS

Step 1. First add EPEL yum repository your system.

CentOS 6:

CentOS 7:

Step 2. Install XCache for PHP.
Step 3. Configuring of XCache for PHP.

You can modify the settings in the xcache.ini file according to your needs. Detailed explanation about these settings you can find at the xCache official wesbsite.

Step 4. Restart your Nginx web server.

At this point xCache should be successfully installed on your server. You can confirm that by executing the following command:

Congratulation’s! You have successfully installed XCache for PHP. Thanks for using this tutorial for installing XCache in CentOS system. For additional help or useful information, we recommend you to check the official XCache web site.

PHP Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “PHP Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!