search
HomeBackend DevelopmentPHP7How to install php7 on centos yum

How to install php7 on centos yum

Aug 19, 2020 am 09:55 AM
centosphp7yum

How to install php7 on centos yum: first install the corresponding yum source of PHP7; then install PHP7 through the command "yum install php70w"; finally, test whether the installation is successful through the "php -v" command.

How to install php7 on centos yum

CentOS7 is installed using yumPHP7

View system version command

[root@VM_176_162_centos ~]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)

1. If you have installed other versions of PHP before, delete it first

yum remove php*

2.rpm installs the corresponding yum source of PHP7

CentOS/RHEL 7.x:
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
#目前 webtatic.com 最高只有php72  如果要更高的可使用下面的
rpm -Uvh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

3.yum installs PHP7

yum install php70w

4. After the installation is completed, test whether the installation is successful

php -v

5. To run the PHP web page, start the php-fpm interpreter

service php-fpm start

6. Install other plug-ins (optional)

How to install php7 on centos yum

If you have trouble with this step, just execute the following command (if there is a conflict, follow the prompts to filter the conflict)

yum install php70w*  //意为安装全部插件

If you encounter a conflict that cannot be matched The problem should be caused by using zsh. Just switch to ordinary bash, as shown in the following figure:

How to install php7 on centos yum

The above is the detailed content of How to install php7 on centos yum. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft