(现在CentOS8推荐使用dnf的module方式进行升级,具体见链接。)
1、卸载旧PHP
yum remove php*
2、安装EPEL
yum install epel-release
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
3、查看PHP
yum search php74
4、安装php
yum install php74-php-gd php74-php-pdo php74-php-mbstring php74-php-cli php74-php-fpm php74-php-mysqlnd
5、启动fpm
service php74-php-fpm start