Check-out our new look and give us some feedback!

How to Install XCache on Ubuntu 12.04 LTS

Posted on by J. Mays
Reading Time: < 1 minute
Note:
Please note that this article is considered legacy documentation because Ubuntu 12.04 has reached its end-of-life support.
Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher, on Ubuntu 12.04 LTS.
  • I’ll be working from a Liquid Web Core Managed Ubuntu 12.04 LTS server with Apache and PHP installed, and I’ll be logged in as non-root user. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Ubuntu 12.04 LTS.

Step #1: The Installation

As a matter of best practice we’ll update our packages:

sudo apt-get update

Then let’s install XCache and any required packages:

sudo apt-get install php5-xcache

Step #2: Verify the Extension is Available

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

php -m | grep XCache

Your result should be:

XCache
XCache

Listing the PHP version should now include information about XCache as well:

php -v

PHP 5.3.10-1ubuntu3.18 with Suhosin-Patch (cli) (built: Apr 17 2015 15:11:25)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with XCache v1.3.2, Copyright (c) 2005-2011, by mOo

About the Author: J. Mays

Latest Articles

How to Edit Your DNS Hosts File

Read Article

How to Edit Your DNS Hosts File

Read Article

Microsoft Exchange Server Security Update

Read Article

How to Monitor Your Server in WHM

Read Article

How to Monitor Your Server in WHM

Read Article