Table of Contents
Step 1: Add EPEL and REMI Repository
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Step 2: Install PHP 7.4 on CentOS 8 / RHEL 8
sudo dnf -y install dnf-utils
Step 3: Enable the module stream for PHP 7.4 on CentOS 8 / RHEL 8
sudo dnf module reset php -y
sudo dnf module install php:remi-7.4
Step 4: Install additional packages
sudo dnf update
sudo yum install php php-curl php-cli php-mysql php-gd php-common -y
php -v
5/5 - (1 vote)
.