- These instructions are intended specifically for installing XCache, an open-source opcode cacher.
- I’ll be working from a Liquid Web Core Managed CentOS 7 server, 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 CentOS 7.
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 need to install the EPEL repository. Directions on enabling EPEL can be found here.
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
Now verify that the extension is available by using the following command:
php -m | grep XCache
Your result should be:
Listing the PHP version should now include information about XCache as well:
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
Our Sales and Support teams are available 24 hours by phone or e-mail to assist.