CentOS7yum installation PHP7.2 instance method

小云云
Release: 2023-03-20 13:20:01
Original
11964 people have browsed it

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*
    Copy after login
  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
    Copy after login
    Copy after login
  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
    Copy after login
    Copy after login
  1. If it has been installed before Let’s uninstall it first

    yum -y remove php*
    Copy after login
  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
    Copy after login
    Copy after login
  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
    Copy after login
    Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template