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
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!