GetPageSpeed Extras

php-opcache

How to install php-opcache on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

The Zend OPcache

License: PHP-3.01 Vendor: GetPageSpeed LLC http://www.php.net/

Availability

Distro aarch64 noarch x86_64 Version
RHEL 10
RHEL 9
RHEL 8
RHEL 7 8.4.24
RHEL 6

Description

The Zend OPcache provides faster PHP execution through opcode caching and optimization. It improves PHP performance by storing precompiled script bytecode in the shared memory. This eliminates the stages of reading code from the disk and compiling it on future access. In addition, it applies a few bytecode optimization patterns that make code execution faster.

Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Install

php-opcache on CentOS 7 / RHEL 7

sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm
sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum -y install php-opcache

Package downloads require an active GetPageSpeed subscription — one repository for php-opcache and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.

Subscribe — from $10/mo

Frequently asked questions

How do I install php-opcache on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?

Add the GetPageSpeed repository, then install the php-opcache package with your system package manager.

Which Enterprise Linux versions is php-opcache available for?

php-opcache is available for RHEL 7.

Subscribe