How To Install XCache on CentOS 7

r00t December 16, 2015

php-logo

In this tutorial we will show you how to install and configuration of XCache on your CentOS 7 server. 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.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation XCache in CentOS 7 server.

Install XCache on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date and add EPEL (Extra Packages for Enterprise Linux) yum repository your system:

Step 2. Installing XCache and any required packages:

Now verify that the extension is available by using the following command:

Your result:

Restart your Apache web server for the changes to take effect:

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 on your CentOS 7 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!
Share on Google+0Share on Facebook0Tweet about this on TwitterShare on Tumblr0Share on StumbleUpon1Share on Reddit0Pin on Pinterest2
The Tags: ,

Leave a Comment