LinuxTutorialsUbuntu

How To Install XCache on Ubuntu 15.04

Install XCache on Ubuntu 15.04

In this tutorial, we will show you how to install and configuration of XCache on your Ubuntu 15.04. For those of you who didn’t know, XCache is an 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 reduces 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 the step-by-step installation XCache on Ubuntu 15.04 server.

Prerequisites

  • A server running one of the following operating systems: Ubuntu15.04, and any other Debian-based distribution.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install XCache on Ubuntu 15.04

Step 1. First of all, make sure that all packages are up to date.

apt-get update

Step 2. install XCache.

Installing XCache is as simple as running just one command:

apt-get install php5-xcache

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

php -m | grep XCache

Your result should be similar to:

XCache
XCache Cacher
XCache Coverager
XCache Optimizer
XCache
XCache Cacher
XCache Coverager
XCache Optimizer

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

### php -v
PHP 5.6.4 (cli) (built: Jul 24 2015 00:46:99)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
with XCache v3.2.0, Copyright (c) 2005-2014, by mOo
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
with XCache Optimizer v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Cacher v3.2.0, Copyright (c) 2005-2014, by mOo
with XCache Coverager v3.2.0, Copyright (c) 2005-2014, by mOo

Congratulations! You have successfully installed XCache. Thanks for using this tutorial for installing XCache for PHP in Ubuntu 15.04 system. For additional help or useful information, we recommend you check the official PHP website.

VPS Manage 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 “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!

r00t

r00t is an experienced Linux enthusiast and technical writer with a passion for open-source software. With years of hands-on experience in various Linux distributions, r00t has developed a deep understanding of the Linux ecosystem and its powerful tools. He holds certifications in SCE and has contributed to several open-source projects. r00t is dedicated to sharing her knowledge and expertise through well-researched and informative articles, helping others navigate the world of Linux with confidence.
Back to top button