#4 Install PHP 7 4 on Centos Stream 8
yum module list php
yum module reset php
yum module enable php:remi-7.4
## verify it php set to 7.4 ##
yum install -y @php php-xml php-session php-sockets php-ldap php-gd php-json php-mysqlnd php-gmp php-mbstring php-posix php-snmp php-intl
While installing PHP, php-fpm is also installed as its dependency, it will be treated as FastCGI Server, so use below command to start and enable FPM service,
systemctl start php-fpm
systemctl enable php-fpm
centos 7