Manual installation of apachephpmysql is very troublesome, so you can use yum, but the official yum version is too low. The following describes how to use YUM to Upgrade PHP and MySQL in CentOS: yum is a tool that comes with CentOS to conveniently Delete and update RPM packages. It automatically solves the dependency problem of packages. Update PHP with yum. You only need to use one command.
Installing apache php mysql manually is very troublesome, so you can use yum, but the official yum version is too low. The following describes how to use YUM to Upgrade PHP and MySQL in CentOS: yum is a tool that comes with CentOS to conveniently Add/delete/update RPM packages, it automatically solves the dependency problem of the package. Update PHP with yum. You only need to use one command.
Installing apache php mysql manually is very troublesome, so you can use yum, but the official yum version is too low.
The following describes how to use YUM to Upgrade PHP and MySQL in CentOS:
Yum is a tool that comes with CentOS to conveniently add, delete, and update RPM packages. It automatically solves the dependency problem of packages.
To update PHP with yum, you only need to use one command:
# Yum update php
But the problem arises. After using this command, the system tells me that no updatable package is found. The current PHP version is only 5.2.1, and PHP has been officially updated to 5.2.13.
After some inquiry, I realized that PHP is still 5.2.1 In the original CentOS system source, and an additional source is required to Upgrade PHP.
According to the introduction of foreign users, an additional source is added:
After logging on to SSH, run the following commands in sequence:
# Rpm-import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# Vi/etc/yum. repos. d/utterramblings. repo
Add the following content to the open document:
[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 php upgrade.
# Yum update php
Similarly, run the following command to upgrade mysql
# Yum update mysql