Home  >  Article  >  Backend Development  >  CentOS7yum installation PHP7.2 instance method

CentOS7yum installation PHP7.2 instance method

小云云
小云云Original
2018-02-26 13:26:1911918browse

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

  1. yum -y remove php*
  2. 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
  3. 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
  1. If it has been installed before Let’s uninstall it first

    yum -y remove php*
  2. 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
  3. 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn