How to Install PHP 8.4 on AlmaLinux 10
This guide will help you install PHP 8.4 on AlmaLinux 10 using the Remi repository.
⚠️ NOTE: PHP 8.4 introduces new features like property hooks, asymmetric visibility, and performance improvements. Ensure your applications are compatible before upgrading.
Update the system
dnf update -y
Install EPEL (Extra Packages for Enterprise Linux)
dnf install epel-release -y
Install Remi repository
dnf install -y https://rpms.remirepo.net/enterprise/remi-release-10.rpm
Reset any existing PHP modules
dnf module reset php -y
Enable Remi repository for PHP 8.4
dnf module enable php:remi-8.4 -y
Output:
[root@server ~]# dnf module enable php:remi-8.4 -y
Last metadata expiration check: 0:00:09 ago on Wed May 28 21:36:36 2025.
Dependencies resolved.
================================================================================
Package Architecture Version Repository Size
================================================================================
Enabling module streams:
php remi-8.4
Transaction Summary
================================================================================
Complete!
Install PHP 8.4 and common extensions
dnf install -y php php-cli php-common php-fpm php-mysqlnd php-opcache php-xml php-mbstring php-curl php-gd php-json
Verify PHP version
php -v
Output:
[root@server ~]# php -v
PHP 8.4.7 (cli) (built: May 6 2025 12:31:58) (NTS gcc x86_64)
Copyright (c) The PHP Group
✅ You should now have PHP 8.4 installed and ready to use on AlmaLinux 10.
CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME
for 10% off!
1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month
Available Locations: LAX | MIA | ATL | FRA | AMS