In this article, we mainly share with you the CentOS7yum installation PHP7.2 instance method, hoping to help everyone.
If it has been installed before, let’s uninstall it first
yum -y remove php*
Since the yum source of Linux does not exist for php7.x, we need to change the yum source
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum Install php72w and various extensions, just choose what you need
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
If it has been installed before Let’s uninstall it first
yum -y remove php*
Since the yum source of Linux does not exist for php7.x, we need to change the yum source
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum Install php72w and various extensions, just choose what you need
yum -y install php72w php72w-cli php72w-common php72w-devel php72w-embedded php72w-fpm php72w-gd php72w-mbstring php72w-mysqlnd php72w-opcache php72w-pdo php72w-xml
Related recommendations:
PHP7.2 version performance introduction
The above is the detailed content of CentOS7yum installation PHP7.2 instance method. For more information, please follow other related articles on the PHP Chinese website!