PHP for Rocky Linux 8, 9 and 10

Current PHP 8.3, 8.4 and 8.5 releases as dnf module streams. Built from verified upstream sources, tested and signed by Swissmakers GmbH.

Security advisory, 21 October 2026

PHP 8.5.12, 8.4.27 and 8.3.36 fix two critical vulnerabilities that allow unauthenticated remote code execution (CVE-2026-109618, CVE-2026-109619). Update all PHP servers and restart php-fpm. php.net advisory

Available versions

One repository per Rocky Linux release. Each PHP branch is a module stream of php: a server only receives updates for the stream it has enabled, never an unplanned upgrade to another branch.

BranchModule streamRocky Linux 8Rocky Linux 9Rocky Linux 10Security support until
PHP 8.3php:swissmakers-8.38.3.36-18.3.36-18.3.36-131 Dec 2027
PHP 8.4php:swissmakers-8.48.4.27-28.4.27-28.4.27-231 Dec 2028
PHP 8.5php:swissmakers-8.58.5.12-18.5.12-18.5.12-131 Dec 2029

Installation

Run as root. The commands are identical on Rocky Linux 8, 9 and 10.

  1. Add the repository and trust the signing key

    curl -fsSL -o /etc/yum.repos.d/swissmakers.repo https://rpm.swissmakers.ch/repos/swissmakers.repo
    rpm --import https://rpm.swissmakers.ch/repos/RPM-GPG-KEY-swissmakers
  2. Enable the PHP stream

    dnf module reset php -y
    dnf module enable php:swissmakers-8.4 -y
  3. Install PHP

    dnf install php-fpm php-cli php-opcache php-mysqlnd php-xml php-mbstring php-intl php-gd
    systemctl enable --now php-fpm

Existing installations

After step 2, run dnf distro-sync 'php*' and restart php-fpm. This replaces packages from AppStream or other repositories.

Changing the branch

Repeat step 2 with the new stream, then dnf distro-sync 'php*'. Test the application first: minor PHP releases contain incompatible changes.

Web server

PHP runs as PHP-FPM. Apache uses proxy_fcgi via /etc/httpd/conf.d/php.conf, nginx configuration is in /etc/nginx/. mod_php is not provided.

Verification

Every release passes the same chain of checks before it is published.

Source
The release tarball must match the SHA-256 checksum published by php.net and carry a valid OpenPGP signature of the PHP release manager.
Build
Clean Rocky Linux container per OS release, based on the Fedora packaging. The upstream test suite runs on every build.
Dependencies
Every package must install with BaseOS and AppStream alone. No EPEL or other third-party repositories are required.
Signature
Packages and repository metadata are signed with an RSA 4096 key. The repository file enables gpgcheck and repo_gpgcheck.
Release test
A fresh Rocky Linux container installs each stream from this repository and runs php and php-fpm.
Key fingerprint
4478 A842 F7D6 A2C6 F64A  4540 38FD B5C7 242F 3A8C
RPM-GPG-KEY-swissmakers