How to Install PHP 8.3 on Rocky Linux 10
Pre-requisites
Requirements
- A system with Rocky Linux 10 installed and running
- Root access to the system
Add EPEL and Remi Repositories
Install EPEL and Remi repositories for Rocky Linux 10:
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -y
dnf install https://rpms.remirepo.net/enterprise/remi-release-10.rpm -y
Install yum-utils
Install the YUM utilities required for module management:
dnf install yum-utils -y
Enable PHP 8.3 Remi Module
Reset existing PHP module streams and enable PHP 8.3 from Remi:
dnf module reset php -y
dnf module enable php:remi-8.3 -y
Install PHP 8.3 Core Packages
Install the main PHP 8.3 packages:
dnf install php php-cli php-common php-fpm php-mbstring php-xml -y
You may see output similar to this:
Installing:
php-8.3.x-x.el10.remi.x86_64
php-cli-8.3.x-x.el10.remi.x86_64
php-common-8.3.x-x.el10.remi.x86_64
php-fpm-8.3.x-x.el10.remi.x86_64
php-mbstring-8.3.x-x.el10.remi.x86_64
php-xml-8.3.x-x.el10.remi.x86_64
Install System Updates
Apply any pending updates on the system:
dnf update -y
Install PHP (Meta Package)
Install the default PHP 8.3 meta package if not already:
dnf install php -y
This may include dependencies like:
apr, apr-util, httpd-core, httpd-tools, libsodium, mailcap, php-opcache, php-pdo, php-sodium
Verify PHP Installation
Check the PHP version to confirm:
php -v
Sample output:
PHP 8.3.22 (cli) (built: Jun 3 2025 17:17:57) (NTS gcc x86_64)
Copyright (c) The PHP Group
Zend Engine v4.3.22, Copyright (c)
(Optional) Install Additional PHP Modules
If you're using CMS platforms like WordPress, Joomla, or Drupal, install additional PHP modules:
dnf install -y php-{cli,gd,mysqlnd,mbstring,json,common,dba,dbg,devel,embedded,enchant,bcmath,gmp,intl,ldap,odbc,pdo,opcache,pear,pgsql,process,snmp,soap,xml}
Conclusion
PHP 8.3 is now successfully installed on Rocky Linux 10. You’re ready to run or develop modern PHP-based applications. If you need further assistance, feel free to contact support or refer to the Remi repository documentation.
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