centos7升級版本到php7.2
阿新 • • 發佈:2018-12-05
1、檢視PHP版本
php -v
2、刪除舊php
yum remove php*
3、安裝epel
sudo yum install epel-release
4、安裝remi
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
5、安裝yum-utils
sudo yum install yum-utils
6、Enable remi repo
sudo yum-config-manager --enable remi-php72 sudo yum update
7、安裝php7.2
sudo yum install php72
sudo yum install php72-php-fpm php72-php-gd php72-php-json php72-php-mbstring php72-php-mysqlnd php72-php-xml php72-php-xmlrpc php72-php-opcache
8、安裝完成,檢視當前php版本
php -v
常用php擴充套件
yum install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml php72w-ldap php72w-mcrypt