Install PHP version

To view a list of all the installable PHP modules use this command:
php -m
dnf makecache -y
dnf remove php-common
dnf module reset php -y
dnf module install php:remi-7.4
dnf module install php:remi-8.2
dnf install php php-common php-opcache php-cli php-gd php-curl php-mysqlnd php-psr php-soap php-zip php-intl php-imap
check installed modules
yum list installed | grep -i php

service httpd restart

service php-fpm restart

 

from here
from here

Leave a Reply