Home  >  Article  >  Backend Development  >  yum 装配php5.2

yum 装配php5.2

WBOY
WBOYOriginal
2016-06-13 13:13:50879browse

yum 安装php5.2
CentOS yum安装php版本比较老(PHP 5.1.6),现在很多程序都需要5.2.x的版本支持,所以网上找了找方法,一并记录下来。
这次更新使用的是jasonlitka的yum更新源
安装RPM-GPG-KEY-jlitka。
# rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
编辑CentOS-Base.repo。
# vi /etc/yum.repos.d/CentOS-Base.repo
增加下面信息
[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
执行命令,自动升级。
yum update php -y
yum install libmcrypt -y
如果之前安装了MySQL,yum将一并更新。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn