How to install php (aarch64)
PHP scripting language for creating dynamic web sites
Install
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo amazon-linux-extras install epel sudo yum -y install php
Description
PHP is an HTML-embedded scripting language. PHP attempts to make it easy for developers to write dynamically generated web pages. PHP also offers built-in database integration for several commercial and non-commercial database management systems, so writing a database-enabled webpage with PHP is fairly simple. The most common use of PHP coding is probably as a replacement for CGI scripts. This package contains the module (often referred to as mod_php) which adds support for the PHP language to system Apache HTTP Server.
Architecture
Optimized for aarch64 (ARM64) architecture. It can be used on AWS Graviton instances, as well as Raspberry Pi 4 and newer.
RPMs
| Package | Size | Built | Changes |
|---|---|---|---|
| php-7.2.34-47.amzn2.aarch64 | 3.1 MiB | 2026-11-27 |
Danila Vershinin - Improved the everpatch extension |
| php-7.2.34-46.amzn2.aarch64 | 3.1 MiB | 2026-11-27 |
Danila Vershinin - fix xml_parse() reporting entities in attribute values as character · data with libxml2 2.13 (GH-14834) |
| php-7.2.34-45.amzn2.aarch64 | 3.1 MiB | 2026-11-23 |
Danila Vershinin - build the ZTS flavor on aarch64 too: Amazon's php7.x topics ship it there, · so an amzn2 aarch64 upgrade dropped libphp7-zts.so and php-zts.d |
| php-7.2.34-44.amzn2.aarch64 | 1.6 MiB | 2026-11-23 |
Danila Vershinin - restore the ZTS flavor of the base packages, as Remi's php72 ships it: · zts-php, php-zts.d, ZTS extension modules and libphp7-zts.so, which · 15-php.conf loads under the event and worker MPMs |
| php-7.2.34-43.amzn2.aarch64 | 1.6 MiB | 2026-11-21 |
Danila Vershinin - pgsql: fix the extension failing to load (undefined symbol zend_string_efree) · since 7.2.34-40 · - build: fail when a packaged extension module does not load |
| php-7.2.34-42.amzn2.aarch64 | 1.6 MiB | 2026-11-21 |
Danila Vershinin - Improved the everpatch extension |
| php-7.2.34-41.amzn2.aarch64 | 1.6 MiB | 2026-11-19 |
Danila Vershinin - port the 2026-11-19 PHP security batch: CVE-2026-129496 (timezone cache · use-after-free), CVE-2026-126714 (partially overwritten session files), · CVE-2026-129289 (FPM request smuggling via an unread body), CVE-2026-129291 · (FPM epoll use-after-free), CVE-2026-128064 (mixed-case HTTPS/FTPS sent in · plaintext), CVE-2026-128090 (PHAR OpenSSL signature downgrade), · CVE-2026-129538 (php-cgi PATH_INFO out-of-bounds), CVE-2026-129292 (FPM · status page XSS in further fields), CVE-2026-129506 (SOAP DTD · use-after-free), CVE-2026-15353 (SOAP arraySize out-of-bounds read), · CVE-2026-129474 (backtrace argument hardening) · and their upstream advisories GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, · GHSA-qc49-hpvq-g2w6, GHSA-jm4m-qfqx-967m, GHSA-f6gg-rchx-xw8j, · GHSA-68fq-fh7h-f8gr, GHSA-5j3f-64r7-f564, GHSA-3mg3-cr28-46gc, · GHSA-4646-p932-gw34, GHSA-q23r-hr55-xmpg, GHSA-8mjj-2r7p-4hg2 |
| php-7.2.34-40.amzn2.aarch64 | 1.6 MiB | 2026-11-13 |
Danila Vershinin - imap_mail_compose(): skip numeric disposition and type.parameters keys · instead of crashing on them (bug #80710 follow-up) · - pgsql, pdo_pgsql: check for errors when escaping strings and identifiers · CVE-2025-1735 |
| php-7.2.34-39.amzn2.aarch64 | 1.6 MiB | 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-7.2.34-38.amzn2.aarch64 | 1.6 MiB | 2026-10-31 |
Danila Vershinin - aarch64 only: php-oci8 requires Oracle's actual provide (libclntsh.so >= 19.1) · instead of the generated ELF soname, so it installs next to Oracle's · Instant Client 19.10 aarch64 RPM |
| php-7.2.34-37.amzn2.aarch64 | 1.6 MiB | 2026-10-30 |
Danila Vershinin - fix CVE-2026-7258 (GHSA-m8rr-4c36-8gq4): pass unsigned char to · ctype.h functions tree-wide · - php -v and phpinfo Build Provider show the package release |
| php-7.2.34-36.amzn2.aarch64 | 1.6 MiB | 2026-10-29 |
Danila Vershinin - complete the #81720 fix (CVE-2022-31625): pg_* parameter conversion · failure no longer frees uninitialized entries in the two remaining functions |
| php-7.2.34-35.amzn2.aarch64 | 1.6 MiB | 2026-10-27 |
Danila Vershinin - support a license file at /etc/getpagespeed/license.jwt |
| php-7.2.34-33.amzn2.aarch64 | 1.6 MiB | 2026-10-26 |
Danila Vershinin - add RuntimeDirectory=php-fpm to the base-shape unit (RHEL parity): · systemd recreates /run/php-fpm on every service start |