The default version is too low, manual installation has some trouble, want to use Yum install the following scenarios can be used:
1. Check the currently installed PHP package
Yum List Installed | grep php
If you have a PHP package installed, remove them first
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
2.Centos 5.X
RPM-UVH http://mirror.webtatic.com/yum/el5/latest.rpm
CentOs 6.x
RPM-UVH http://mirror.webtatic.com/yum/el6/latest.rpm
CentOs 7.X
RPM-UVH https://mirror.webtatic.com/yum/el7/epel-release.rpm
RPM-UVH https://
mirror.webtatic.com/yum/el7/webtatic-release.rpm
3. Run Yum Install
Yum install php55w. x86_64 php55w-cli. x86_64 Php55w-common. x86_64 php55w-gd. x86_64 Php55w-ldap. x86_64 php55w-mbstring. x86_64 Php55w-mcrypt. x86_64 Php55w-mysql. x86_64 Php55w-pdo.
x86_64
- This article is from: Linux Learning Tutorial Network
CentOS under Yum install PHP5.5