How to upgrade the LNMP 0.5 inside the php5.2.14 to PHP 5.3.3?

Source: Internet
Author: User
How to upgrade the LNMP 0.5 inside the php5.2.14 to PHP 5.3.3???
How to upgrade the LNMP 0.5 inside the php5.2.14 to PHP 5.3.3???

~~~~~~~~~~~~~~~
Note: Do not Baidu Google found the tutorial sent to the upgrade can not:::
The PHP version of CentOS5.3 defaults to 5.1.6, and then there is a vulnerability in PHP before 5.2.9, but Yum update is not available in many places on the Web at this time php* Upgrade to 5.2.9, the more common is to upgrade to 5.2.6 version, after searching abroad data, now finally found a way to upgrade the CentOS PHP to 5.2.9.
Note that this method can only be upgraded on the official PHP version, if you use the online upgrade to 5.2. Version 6 upgrade method has been upgraded, you will not be able to use this method to upgrade PHP.
Run the following command:

wget http://download.fedora.redhat.co ... ease-5-3.noarch.rpm
wget http://rpms.famillecollet.com/en ... el5.remi.noarch.rpm
RPM-UVH remi-release-5*.rpm epel-release-5*.rpm

Then edit/etc/yum.repos.d/remi.repo
#vi/etc/yum.repos.d/remi.repo
Add a line at the end of this file:
Priority=1

Save exit.

/etc/yum.repos.d/epel.repo and/etc/yum.repos.d/epel-testing.repo These two files are also edited according to the above Method!

Use the following command to upgrade, but after testing, if the individual upgrade PHP will fail to prompt, only unicom MySQL upgrade together, so we must execute the following command to upgrade PHP to 5.2. Version 9:
Yum–-enablerepo=remi Update php* mysql*

PS: This way, PHP is upgraded to 5.3.


Method Two-------------------------------------------
Or go to http://oss.oracle.com/.
Next to php5.2 RPM package

Method Three-------------------------------------------


Vim/etc/yum.repos.d/utterramblings.repo
Input
[Utterramblings]
Name=jason ' s utter ramblings Repo
baseurl=http://www.jasonlitka.com/media/el$releasever/$basearch/
Enabled=1
Gpgcheck=1
Gpgkey=http://www.jasonlitka.com/media/rpm-gpg-key-jlitka

Final installation
Yum Install httpd PHP
And now I'm using it this way.
php-5.2.11
httpd-2.2.14

  • 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.