PHP 7.0 Security Patches for CentOS 7
Everpatch PHP keeps PHP 7.0 security-patched on EL7 — upstream walked away from 7.0 back in 2018.
Signed RPM builds, drop-in compatible with Remi's packages, with current security fixes ported to the 7.0 codebase. Package names stay the same; yum upgrade replaces them in place.
PHP2Shell fixed from 7.0.33-43.el7 (php-*) and 7.0.33-45.el7 (php70-php-*). How to apply it · Check your server · Scan it with CVEfox
The gap
PHP 7.0 has been end of life upstream since the end of 2018, and CentOS 7 went end of life in June 2024. Remi's last EL7 build of 7.0 shipped in June 2024; every PHP security release since then has skipped both the version and the OS.
Everpatch PHP 7.0 continues the channel: the upstream php-src security fixes are ported to 7.0 on EL7, built, signed, and served from extras.getpagespeed.com.
Install
Replacing system PHP (Remi remi-php70 style, base-name php-*)
yum -y install https://extras.getpagespeed.com/release-latest.rpm yum --enablerepo=getpagespeed-extras-php70 upgrade 'php-*' systemctl restart php-fpm
Side by side (software collection, php70-php-*)
yum -y install https://extras.getpagespeed.com/release-latest.rpm yum install php70-php-cli php70-php-fpm systemctl restart php70-php-fpm scl enable php70 -- php -v
On a fresh host, swap upgrade 'php-*' for install php-cli php-fpm plus the extensions you need. Enable the channel per transaction as shown: it carries base-name php, so leaving it on would offer that version to an unscoped yum update.
The php70-php-* collection lives in the always-enabled main repository, so no channel is needed; on a host with Remi's collection, yum upgrade 'php70-php*' swaps it in place.
Package names match Remi's, so upgrades are in place and yum downgrade takes you back. PECL extensions and ionCube keep working. Running Apache mod_php? Restart httpd instead. Afterwards php -v prints Built by GetPageSpeed LLC.
Every channel is tested serving real pages through both mod_php and PHP-FPM: fresh installs, upgrades from Remi with PECL and ionCube loaded, and the collection builds.
Free for personal use. Running it for a business?
Patching EOL PHP is ongoing work: every new PHP CVE has to be ported to branches upstream abandoned years ago, then built and tested on EL7. Commercial production use requires GetPageSpeed Ultra or GetPageSpeed Fleet: either one funds that work and keeps your production servers covered for the next one, together with the full GetPageSpeed repository. When a new fix is ready for the PHP your servers run, we email you the exact command. Ultra covers up to 10 servers running your own services; Fleet is the plan for servers that host client websites, or for more than 10 servers. 250+ employees or $10M+ revenue, or need a contractual SLA and invoice/PO? That is Enterprise.
Ultra, $500/year Fleet, from $800/year Contact us about Enterprise
Security fixes in this channel
The channel's security notes track 82 CVE fixes and 16 further GitHub security advisories that never reached the last vendor build for Enterprise Linux 7.
Fixes are ports of the upstream php-src security patches, audited hunk by hunk; the provenance of every patch is documented per release. The background story of patching EOL PHP on CentOS 7 is covered in our PHP2Shell write-up.
Frequently asked questions
Is PHP 7.0 on CentOS 7 patched for PHP2Shell?
Yes. Everpatch PHP 7.0 carries the backported PHP2Shell fix from 7.0.33-43.el7 (php-*) and 7.0.33-45.el7 (php70-php-*) onward. The PHP version number does not change, so check the package release rather than php -v, or paste your package list into the PHP2Shell checker. The full walkthrough is in our PHP2Shell guide.
Is PHP 7.0 still safe to run on CentOS 7?
With this channel, the publicly known PHP CVEs that apply to 7.0 are patched — years after upstream stopped. PHP 7.0 remains an end-of-life runtime: plan your upgrade on your own schedule. Everpatch exists so a CVE disclosure does not set that schedule for you.
Where do the patches come from?
From upstream php-src, ported to the 7.0 source tree and audited hunk by hunk. Where no vendor 7.0 port exists to cross-check, the port is derived from the adjacent maintained branches and verified against upstream's fix hunk by hunk. Every patch's provenance is documented per release.
Will this replace my existing PHP packages?
Yes, in place. The channel ships the same package names as Remi's PHP 7.0 (base-name php-* in the getpagespeed-extras-php70 channel, SCL php70-php-* in the main repo), with higher release numbers, so a plain yum upgrade swaps them and yum downgrade reverts.
What if I would rather move to a current PHP?
The GetPageSpeed PHP 8.4 stack runs current, upstream-supported PHP on CentOS 7. Same repository, one stack package.
Is oci8 (Oracle) available?
Yes, in both shapes: php-oci8 and php70-php-oci8, linked against Oracle Instant Client 21 exactly like Remi's EL7 builds, so an existing Remi oci8 install upgrades cleanly. Install oracle-instantclient-basic 21.x from Oracle first: the GetPageSpeed repository does not redistribute Oracle's libraries.
Do I need a subscription?
Not for personal, development or evaluation use: the PHP packages install from the public GetPageSpeed repository with no signup. Commercial production use requires a subscription under the repository terms: GetPageSpeed Ultra ($500/year) for up to 10 servers running your own services, or GetPageSpeed Fleet (from $800/year) for servers that host client websites or fleets larger than 10. Either one funds these backports and keeps your servers covered for the next EOL PHP CVE. Organizations with 250+ employees or $10M+ revenue, or anyone needing a contractual SLA and invoice/PO procurement, should contact us about Enterprise. To license servers without registering IP addresses, place your license file at /etc/getpagespeed/license.jwt.