How to install php in CentOS/RHEL 7 (x86_64)
PHP scripting language for creating dynamic web sites
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
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. The php package contains the module (often referred to as mod_php) which adds support for the PHP language to Apache HTTP Server.
Compatibility
This package is compatible with all RHEL-based distributions, including CentOS, AlmaLinux, Oracle Linux, Rocky Linux, etc.
RPMs
| Package | Size | Built | Changes |
|---|---|---|---|
| php-7.0.33-58.el7.x86_64 | 2.6 MiB | 2026-11-21 |
Danila Vershinin - security: CVE-2025-1735, the pgsql and pdo_pgsql extensions now check · libpq's escaping functions for errors · - build: fail when a packaged extension module does not load |
| php-7.0.33-57.el7.x86_64 | 2.6 MiB | 2026-11-21 |
Danila Vershinin - Improved the everpatch extension |
| php-7.0.33-56.el7.x86_64 | 2.6 MiB | 2026-11-19 |
Danila Vershinin - port the 2026-11-19 PHP security release fixes: CVE-2026-129496 · (timezone cache use-after-free), CVE-2026-126714 (partial session file · overwrite), CVE-2026-129289 (FastCGI request smuggling via unread body), · CVE-2026-129291 (FPM epoll use-after-free), CVE-2026-128064 (mixed-case · HTTPS/FTPS plaintext), CVE-2026-128090 (PHAR signature downgrade), · CVE-2026-129538 (CGI PATH_INFO out-of-bounds), CVE-2026-129292 (FPM status · page XSS), CVE-2026-129506 (SOAP DTD use-after-free), CVE-2026-15353 · (SOAP arraySize out-of-bounds read), 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 · - CVE-2026-129474 (GHSA-8mjj-2r7p-4hg2): skip the extra-argument path of · debug_backtrace() for __call trampoline frames (hardening, the upstream · trigger is 8.5-only) |
| php-7.0.33-55.el7.x86_64 | 2.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) |
| php-7.0.33-54.el7.x86_64 | 2.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.0.33-53.el7.x86_64 | 2.6 MiB | 2026-11-05 |
Danila Vershinin - gps-license heartbeat reports the build's own distro on EL6/EL8/EL9 · (EL8/EL9 builds reported el7) |
| php-7.0.33-52.el7.x86_64 | 2.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.0.33-51.el7.x86_64 | 2.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.0.33-50.el7.x86_64 | 2.6 MiB | 2026-10-29 |
Danila Vershinin - bundled libgd (EL6 builds): Fix #77269 imagescale use-after-free · CVE-2016-10166, Fix #77270 imagecolormatch heap overflow CVE-2019-6977, · Fix #77973 gdImageCreateFromXbm uninitialized read CVE-2019-11038, · GIF decoder fix CVE-2026-9672 |
| php-7.0.33-49.el7.x86_64 | 2.6 MiB | 2026-10-27 |
Danila Vershinin - support a license file at /etc/getpagespeed/license.jwt |
| php-7.0.33-48.el7.x86_64 | 2.6 MiB | 2026-10-27 |
Danila Vershinin - license heartbeat sends /etc/getpagespeed/license.jwt as "token" when · present, licensing by token instead of source IP; own /etc/getpagespeed |