CentOS 7升级php5.4到php7.2
更新源
1 rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
2 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
移除原来版本 3 yum remove php-common -y 4 yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring
yum install php72w-fpm systemctl start php-fpm.service 【启动】 systemctl enable php-fpm.service【开机自启动】