PHP
# Install PHP
Upgrade system
sudo dnf upgrade --refresh -y
Install EPEL repository
sudo dnf install epel-release
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
Reset PHP
sudo dnf module reset php
Enable module PHP from Remi
sudo dnf module enable -y php:remi-8.1
Install PHP service
sudo dnf install -y php
Install extension for PHP
sudo dnf install -y php-fpm php-cli php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imap php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache
Enable and start php-fpm service
sudo systemctl enable --now php-fpm
Check PHP version
php -v