Updated: 28 September 2026 · Applies to: AlmaLinux 9 / Rocky Linux 9
The Remi repository provides current PHP versions (and some related packages) for RHEL-based systems when the distribution's own versions are not enough.
Enable it on AlmaLinux 9 / Rocky Linux 9
dnf install epel-release dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm dnf module list php # shows remi-8.x streams
Install a LAMP stack with PHP from Remi
dnf module reset php && dnf module enable php:remi-8.4 dnf install httpd mariadb-server php php-fpm php-mysqlnd php-xml php-mbstring php-gd php-intl systemctl enable --now httpd mariadb php-fpm
Note: Use one PHP source per stream: mixing Remi and AppStream PHP packages causes conflicts. Keep EPEL and Remi updated with dnf upgrade.