You have successfully installed PHP 8.3 on your RHEL 9 system. You can now start developing or hosting web applications using the latest PHP version, taking advantage of its new features and enhancements.
php -v
Step 5: Install Additional PHP Extensions (Optional)
sudo dnf update
Step 2: Enable EPEL Repository in RHEL
sudo dnf search php-*
sudo dnf module install php:remi-8.3
To install the latest version of PHP, first, you need to update your system’s package repository and install newer available packages using the dnf command.
sudo systemctl restart httpd
Or
sudo systemctl restart nginx
PHP is a popular programming language used for building dynamic web applications. With the release of PHP 8.3, developers gain access to new features and improvements.
sudo dnf install php-gd php-xml
sudo subscription-manager repos –enable codeready-builder-for-rhel-9-$(arch)-rpms
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Step 3: Enable Remi Repository in RHEL
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm