Skip to main content

Security-Patched PHP 7.2 and 7.4 for Amazon Linux 2

Everpatch keeps PHP 7.2 and 7.4 patched on Amazon Linux 2, on x86_64 and Graviton (aarch64), as signed RPMs that update the amazon-linux-extras and Remi packages in place.

Base-name php-* from an opt-in channel, or a side-by-side software collection, from the same GetPageSpeed repository that serves CentOS 7.

The gap

PHP 7.2 and 7.4 ended upstream in 2020 and 2022, and their amazon-linux-extras topics stopped receiving fixes. Amazon Linux 2 hosts that cannot move yet keep serving traffic on a PHP with known holes.

Everpatch builds the same patch stack as its CentOS 7 channels for Amazon Linux 2: the current php-src security fixes ported to each branch, signed and served from extras.getpagespeed.com.

PHP channels for Amazon Linux 2

PHP 7.2

74 CVE fixes tracked in this channel's security notes.

Everpatch PHP 7.2 for Amazon Linux 2 →

PHP 7.4

63 CVE fixes tracked in this channel's security notes.

Everpatch PHP 7.4 for Amazon Linux 2 →

Step-by-step PHP2Shell remediation is in our Amazon Linux 2 guide.

Start here

yum -y install https://extras.getpagespeed.com/release-latest.rpm

One release RPM wires up the repository and GPG key. Each PHP channel above has its install commands on its page.

Honest scope

On Amazon Linux 2, Everpatch covers these PHP lines only. The OS itself is Amazon's to patch. Each line ships two shapes: base-name php-* in its opt-in channel and the phpNN-php-* collection in the main repository. Need contractual coverage with an SLA? Enterprise agreements add exactly that on top of the same packages.

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 Amazon Linux 2. 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? That is Enterprise.

Ultra, $500/year Fleet, from $800/year Contact us about Enterprise

Frequently asked questions

Do the packages run on Graviton instances?

Yes. Every Amazon Linux 2 build ships for both x86_64 and aarch64.

I installed PHP from amazon-linux-extras. What changes?

Nothing but the release number. The packages carry the same base names, so the update replaces them in place and keeps your php.ini and /etc/php.d edits.

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, should contact us about Enterprise. To license servers without registering IP addresses, place your license file at /etc/getpagespeed/license.jwt.