The default version is too low, manual installation has some trouble, want to use Yum install the following scenarios can be used:
First remove the old version of PHP,
Pass
yum list installed | grep php
can view all installed PHP software
Use
yum remove php
...... Delete
By yum list php*
looking for the version you need to install, if you don't need to add a third-party yum Source, we recommend installing Webtatic, Rpmforge, and 163 of the domestic
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//rpmforge#32位: wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm #64位: wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
After the installation is complete, you can use Yum repolist to see which sources have been installed, or by ls /etc/yum.repos.d/
viewing them.
Then again yum install php55w
or yum install php54w
or yum install php56w
... You can install a new version of PHP.
The above describes the Linux system CentOS using the Yum method to install the specified version of the PHP add Yum source from PHP53 upgrade to 54/55/56, including aspects of the content, I hope to be interested in PHP tutorial friends helpful.