Home  >  Article  >  Backend Development  >  Centos7 upgrades php version to php7 instance sharing

Centos7 upgrades php version to php7 instance sharing

小云云
小云云Original
2018-03-02 11:10:594387browse

This article mainly shares with you how to upgrade Centos7 php version to php7 instance. I hope it can help everyone.

1. First check if there is an old version

yum list installed | grep php

2. If there is one installed

yum remove php .x86_64 php-cli.x86_64 php-common.x86_64 php-gd.x86_64 php-ldap.x86_64 php-mbstring.x86_64 php-mcrypt.x86_64 php-mysql.x86_64 php-pdo.x86_64

3. After cleaning up the old version, upgrade it


(The above is taken from https://www.cnblogs.com/suzy/p/7070262.html, I would like to express my gratitude)

4. An error was reported at this time. It is indeed


. Don’t be afraid or nervous.

5. Perform cleanup operation

yum clean all

6.Finally reinstall

yum install php70w

. . . . . . . . . . . . . . . .

Successful installation.

Related recommendations:

Upgrade the php version in the wamp integrated environment (implementation method)_PHP tutorial

Upgrade under CentOS65 php

In Centos, yum upgrades php to php5.3

The above is the detailed content of Centos7 upgrades php version to php7 instance sharing. 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