CentOS 5 Upgrade PHP5.1 to PHP5.3 method
My VPS is installed CentOS 5.x, the default installation of PHP is 5.1.6, want to upgrade to PHP5.3, after searching plus groping, upgrade success, make a note record.
650) this.width=650; "class=" Alignnone size-medium wp-image-5 "src=" http://172.27.53.68/wp/wp-content/uploads/2015/ 12/php-284x300.png "alt=" PHP "width=" 284 "height=" style= "Border:none;margin:0px;padding:0px;vertical-align: baseline;height:auto;background:transparent; "/>
Method One: After I actually verify that the upgrade was successful
Service httpd stop//First stop Apache services
Yum Remove php*//release PHP 5.1.6 version
Yum Install php53//installation PHP 5.3
Yum Install php53
Yum Install Php53-cli
Yum Install Php53-common
Yum Install Php53-devel
Yum Install PHP53-GD
Yum Install php53-mbstring
Yum Install Php53-mysql
Yum Install Php53-soap
Yum Install Php53-xml
Yum Install Php53-xmlrpc
Yum Install Php53-bcmath
Yum Install Php53-snmp
Upgrade complete to modify Date.timezone in/etc/php.ini = "Asia/sahnghai"//This step is not verified and does not necessarily require
Then restart the Apache service
Service httpd Start
With php-v view finally changed to PHP 5.3.3, such as
650) this.width=650; "class=" Alignnone size-medium wp-image-6 "src=" http://172.27.53.68/wp/wp-content/uploads/2015/ 12/php-300x50.jpg "alt=" php "width=" height= "style=" Border:none;margin:0px;padding:0px;vertical-align: baseline;height:auto;background:transparent; "/>
650) this.width=650; "class=" Alignnone size-medium wp-image-7 "src=" http://172.27.53.68/wp/wp-content/uploads/2015/ 12/phpp-300x230.jpg "alt=" phpp "width=" height= "style=" Border:none;margin:0px;padding:0px;vertical-align: baseline;height:auto;background:transparent; "/>
method Two: not verified, unclear
Another way to change this is as follows, but I'm not experimenting.
Yum Remove php-cli php-common PHP//#删除原来的PHP版本
RPM-UVH http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm//install a new source
RPM-UVH http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
Yum Install php53u//Installing new PHP
If you are using the CentOS 32bit version, you will need to change the x86_64 above to i386.
CentOS 5 Upgrade PHP5.1 to PHP5.3 method