How to upgrade PHP and MySQL in CentOS system _linux

Source: Internet
Author: User
Using Yum to update PHP, you can do it with just one command:
Copy Code code as follows:

#yum Update php

But the problem is, after using this command, the system tells me that no updatable packages have been found. The current version of PHP is only 5.2.1,php official has been updated to 5.2.6.
After some inquiries, just know that the original CentOS system source PHP is still 5.2.1, need additional sources to upgrade PHP.
According to the introduction of foreign netizens, ice ancient added an additional source:
After you log in to SSH, run the following commands in turn:
Copy Code code as follows:

#rpm –import Http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
#vi/etc/yum.repos.d/utterramblings.repo #文中这里是使用nano, but VPS can not start the Nano, with VI is also possible to replace

In the open document, add the following:
Copy Code code as follows:

[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

Save.
Run the following command again to complete the upgrade of PHP
Copy Code code as follows:

#yum Update php

Similarly, run the following command to upgrade MySQL
Copy Code code as follows:

#yum update MySQL

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.