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