CentOS5.5 Upgrade PHP

Source: Internet
Author: User
In CentOS5.5, the self-contained PHP version is 5.1.6. For project requirements, the PHP version is 5.2.X, so I want to Upgrade PHP. Run the following command: After yumupdatephpphp * is executed, use php-v to check whether the version remains unchanged and does not work at all.

PHP In Cent OS 5.5 is 5.1.6. For project requirements, the PHP version must be 5.2.X, so I want to Upgrade PHP. Run the following command: After yum update php * is executed, use php-v to check whether the version remains unchanged and does not work at all.

PHP In Cent OS 5.5 is 5.1.6. For project requirements, the PHP version must be 5.2.X, so I want to Upgrade PHP.

Run the following command:

Yum update php *

After the execution is complete, use php-v to check whether the version remains unchanged and does not work at all ~~


So I searched for the solution and followed the steps below to make the upgrade successful:

Rpm -- import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andywget-P/etc/yum. repos. d/http://repo.webtatic.com/yum/webtatic.repoyum -- enablerepo = webtatic update php *

After executing the above three lines of commands, php-v and php have been upgraded to 5.3.28.

Restart apache2 to deploy the project.

Service httpd restart
Related Article

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.