How to Install XCache on CentOS 7 Print

  • 0

Step #1: Add the EPEL Repository

Ansible is part of Extra Packages for Enterprise Linux (EPEL), which is a community repository of non-standard packages for the RHEL distribution. First, we’ll install the EPEL repository:

sudo rpm -iUvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Step #2: 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 #3: 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.4.16 (cli) (built: Oct 31 2014 12:59:36)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with XCache v3.1.1, Copyright (c) 2005-2014, by mOo
with XCache Optimizer v3.1.1, Copyright (c) 2005-2014, by mOo
with XCache Cacher v3.1.1, Copyright (c) 2005-2014, by mOo
with XCache Coverager v3.1.1, Copyright (c) 2005-2014, by mOo

 

 

 

Was this answer helpful?

« Back