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 -- importhttp: // w 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.
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