How to install php-opcache in CentOS/RHEL 7 (x86_64)

The Zend OPcache

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

Install

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

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.

Compatibility

This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.

RPMs

Package Size Built Changes
php-opcache-7.4.33-46.el7.x86_64 274 KiB 2026-11-21 Danila Vershinin
- Improved the everpatch extension
php-opcache-7.4.33-45.el7.x86_64 274 KiB 2026-11-19 Danila Vershinin
- CVE-2026-129496 (GHSA-gr4f-wgx5-jpfv): timezone cache use-after-free in php_log_err() (log lines outside an active request are stamped in UTC) · - CVE-2026-126714 (GHSA-fm2m-fjf5-v3cp): session files are always truncated before a write (partially overwritten session file RCE) · - CVE-2026-129291 (GHSA-jm4m-qfqx-967m): FPM closed a child stdio pipe without removing its epoll event (use-after-free) · - CVE-2026-128064 (GHSA-f6gg-rchx-xw8j): mixed-case HTTPS/FTPS URLs were fetched in plaintext · - CVE-2026-128090 (GHSA-68fq-fh7h-f8gr): phar signature downgrade from OpenSSL to a keyless hash · - CVE-2026-129538 (GHSA-5j3f-64r7-f564): php-cgi PATH_INFO pointer underflow · - CVE-2026-129506 (GHSA-4646-p932-gw34): SOAP freed the DTD while entity references pointed into it · - CVE-2026-15353 (GHSA-q23r-hr55-xmpg): SOAP empty arraySize out-of-bounds read · - CVE-2026-129289 (GHSA-qc49-hpvq-g2w6): FastCGI request smuggling via an unread request body · - CVE-2026-129292 (GHSA-3mg3-cr28-46gc): FPM status page XSS via request method, auth user and script filename · - CVE-2026-129474 (GHSA-8mjj-2r7p-4hg2): debug_backtrace args of a __call trampoline frame (hardening) · - CVE-2026-127960 (GHSA-mmf9-xm3v-hg2x): quadratic copying of folded HTTP response headers
php-opcache-7.4.33-44.el7.x86_64 273 KiB 2026-11-13 Danila Vershinin
- DatePeriod::__construct(): restore error handling and name the class when · the DateInterval is uninitialized; later warnings in the request were · thrown as exceptions (GH-22643 follow-up) · - pg_convert(): release the string buffer when escaping fails (leak on the · error path of the pgsql escaping-error backport)
php-opcache-7.4.33-43.el7.x86_64 272 KiB 2026-11-11 Danila Vershinin
- the built-in gps_license extension is renamed to everpatch · (php --ri everpatch); its info section now shows the exact package, · platform, license status and the security fixes compiled into this build
php-opcache-7.4.33-41.el7.x86_64 272 KiB 2026-10-30 Danila Vershinin
- php -v and phpinfo Build Provider show the package release
php-opcache-7.4.33-40.el7.x86_64 272 KiB 2026-10-27 Danila Vershinin
- support a license file at /etc/getpagespeed/license.jwt
php-opcache-7.4.33-38.el7.x86_64 272 KiB 2026-10-24 Danila Vershinin
- add RuntimeDirectory=php-fpm to the base-shape unit (RHEL parity): · systemd recreates /run/php-fpm on every service start
php-opcache-7.4.33-37.el7.x86_64 272 KiB 2026-10-24 Danila Vershinin
- ship tmpfiles.d/php-fpm.conf in the base shape: recreate /run/php-fpm at · boot, without it php-fpm fails to start after a reboot
php-opcache-7.4.33-36.el7.x86_64 271 KiB 2026-10-24 Danila Vershinin
- add gps_license license-presence extension, statically compiled into every · SAPI (ADR-002): phpinfo attribution section, cron.daily verdict heartbeat, · dormant guarded HTML footer tier (hard clamps to footer, fail-open to soft)

Subscribe