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.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket