# dnf install epel-release -y
# dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm
2. Построение кеша
# dnf makecache -y
3. Сброс модуля php
# dnf module reset php
4. Просмотр репозитариев, из которых возможна установка php
# dnf module list php
Last metadata expiration check: 0:00:34 ago on Sat 26 Oct 2024 08:40:59 PM +04.
Rocky Linux 9 - AppStream
Name Stream Profiles Summary
php 8.1 common [d], devel, minimal PHP scripting language
php 8.2 common [d], devel, minimal PHP scripting language
Remi's Modular repository for Enterprise Linux 9 - x86_64
Name Stream Profiles Summary
php remi-7.4 common [d], devel, minimal PHP scripting language
php remi-8.0 common [d], devel, minimal PHP scripting language
php remi-8.1 common [d], devel, minimal PHP scripting language
php remi-8.2 common [d], devel, minimal PHP scripting language
php remi-8.3 common [d], devel, minimal PHP scripting language
php remi-8.4 common [d], devel, minimal PHP scripting language
5. Установка php 8.5
# dnf module -y install php:remi-8.3
6. Установка расширений php
# dnf -y install php php-{common,pear,cgi,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip,imap}
7. Перезагрузка apache
# systemctl restart httpd