Yum install php5.2CentOSyum install php version is relatively old (PHP5.1.6), now many programs require 5.2.x version support, so I found a method online, and recorded it together. This update uses the yum update source of jasonlitka to install RPM-GPG-KEY-jlitka. # Rpm -- importwww. jasonlitka. commedia yum install php5.2
CentOS yum is old in installing php (PHP 5.1.6). many programs now require 5.2.x support, so I found a method on the Internet and recorded it together.
This update uses the yum update source of jasonlitka.
Install RPM-GPG-KEY-jlitka.
# Rpm -- import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
Edit CentOS-Base.repo.
# Vi/etc/yum. repos. d/CentOS-Base.repo
Add the following information:
[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
Run the command to automatically upgrade the instance.
Yum update php-y
Yum install libmcrypt-y
If MySQL is installed before, yum will be updated together.