Home  >  Article  >  Backend Development  >  How to upgrade the php version installed by default yum

How to upgrade the php version installed by default yum

藏色散人
藏色散人Original
2020-07-11 09:27:353381browse

The method to upgrade the php version installed by yum is: first set the yum source; then use the command "yum list | grep php" to view; then execute the command "yum -y install php56w" to install a higher version of php. Can.

How to upgrade the php version installed by default yum

CentOS7.2yum installation php default version is 5.4, you can upgrade to install a higher version through yum

Setting yum source

rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

 View

yum list |grep php

Install a higher version of php

yum -y install php56w

For more related knowledge, please visit PHP Chinese website!

The above is the detailed content of How to upgrade the php version installed by default 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