1. 添加最新版本7.3到本地仓储
sudo
yum -y
install
http:
//rpms
.remirepo.net
/enterprise/remi-release-7
.rpm
sudo
yum -y
install
epel-release yum-utils
2. 禁用老版本php 5.4
sudo
yum-config-manager --disable remi-php54
sudo
yum-config-manager --
enable
remi-php73
3. 安装php7.3.8
sudo
yum -y
install
php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json gd php-gd gd-devel php-common php-ldap php-xmlrpc php-imap
php -v