August 5, 2014 - Warren Held

Installing Zend OpCache for PHP on CentOS 7 or REHL

I found a nice RPM repository that has a bunch of pre-compiled php extensions from various versions of Fedora, CentOS, and REHL.  Here is the short and sweet on how to easily get the Zend OpCache running for PHP on CentOS 7.

Download and install the RPM to add the configuration data for the repository to yum:

rpm -Uvh remi-release-7*.rpm epel-release-7*.rpm

Install the Zend OpCache plugin:

sudo yum install php-pecl-zendopcache.x86_64


Restart Apache:

sudo systemctl restart httpd.service


Change into your html directory and download Rasmus Lerdorf’s OpCache status page to check and see if the OpCache is running:

cd /var/www/html

Now browse to opcache.php in your web browser.