yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum remove php php-* php73*
yum install -y php74-php-cli php74-php-dev php74-php-pgsql php74-php-sqlite3 php74-php-gd php74-php-curl php74-php-memcached php74-php-imap php74-php-mysql php74-php-mbstring php74-php-xml php74-php-zip php74-php-bcmath php74-php-soap php74-php-intl php74-php-readline php74-php-pcov php74-php-msgpack php74-php-igbinary php74-php-ldap php74-php-redis php74-php
如果遇到官方源不可以的情况下使用一下命令替换 源HOST
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo