Update php5.1.x to PhP 5.3.x on centos

Source: Internet
Author: User

Installing PHP 5.2.x or 5.3.x on Redhat es5, centos 5, etc
Ref: http://www.centric-it.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/

To install PHP 5.2.5 (highest in repository at this time) You can make use of a RPM repository maintained by Remi.

(1) download
Wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4. Noarch. rpm
Wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

(2) server guard
Rpm-uvh remi-release-5 *. RPM epel-release-5 *. rpm

PS.You now haveRemi RepositoryOn your system

(3) Upgrade PHP to 5.3.5
Yum -- enablerepo = Remi update PHP

You shoshould now have the latest PhP5 installed.

Also, if have a trouble while installing, you can try to execute folloing:

 
Yum install MySQL -- enablerepo = Remi
Yum update PHP -- enablerepo = Remi


From:

Http://forums.famillecollet.com/viewtopic.php? Id = 91

And

Http://jjh.csie.ccut.edu.tw /? P = 1130

 

In addition, you only need to run

Yum Remove PHP *

Then run:

Yum install php53 *

You can install it directly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.