Please note that this article is considered legacy documentation because Fedora 23 has reached its end-of-life support.
- These instructions are intended specifically for installing XCache, an open-source opcode caching tool, on Fedora 23. To install XCache on another operating system, follow our guides for CentOS 7, Ubuntu 14.04 LTS, and Ubuntu 15.04.
- We’ll be logging in as a non-root user to a Liquid Web Self-Managed Fedora 23 server. If you need more information then visit our tutorial on How to Add a User and Grant Root Privileges on Fedora 23.
Step #1: Install XCacheAs a matter of best practice we’ll update our packages with:
sudo dnf -y updateNow we’ll install XCache and any required packages with the following command:
sudo dnf -y install php-xcache xcache-admin
Step #2: Verify the Extension is AvailableYou can verify that the extension is available with the following command:
php -m | grep XCacheThat will output results similar to:
[root@host ~]# php -m | grep XCache XCache XCache Cacher XCache Coverager XCache OptimizerListing the PHP version with “php -v” should now also include information about XCache:
[root@host ~]# php -v PHP 5.6.19 (cli) (built: Nov 26 2015 08:32:41) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with XCache v3.2.0, Copyright (c) 2005-2014, by mOo 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