yum 装配php5.2

WBOY
Release: 2016-06-13 13:13:50
Original
851 people have browsed it

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将一并更新。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!