How to Install XCache on Fedora 21

Pre-Flight Check
  • These instructions are intended specifically for installing XCache, an open-source opcode cacher.
  • I’ll be working from a Liquid Web Self Managed Fedora 21 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 Fedora 21.

Step #1: The Installation

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

sudo yum -y update

Then let’s install XCache and any required packages:

sudo yum -y install php-xcache xcache-admin

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 Cacher
XCache Coverager
XCache Optimizer
XCache
XCache Cacher
XCache Coverager
XCache Optimizer

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

php -v

PHP 5.5.6 (cli) (built: Nov 13 2013 09:49:19)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo

Try a Free Cloud Server.

Trying a new server is a breeze, and it’ll be up and running in only a few minutes

Be Sociable, Share!
Here's $75, Launch a New VPS Today. Find out why 30,000 customers have chosen our Best-in-Class Performance & 24x7 Heroic Support.