centos yum php5.2.x repo安装方法

十一月 25th, 2009 Posted in PHP | 阅读次数: 1,380 次

Author:gaojinbo
Time:2009-11-25

由于centos5.4安装好后通过yum来安装php的版本是5.1.6,现在很多站点都是在5.2.x上开发的,所以我们要添加其他的yum repo
来安装Php5.2.x的版本,测试了几个非官方的repo仓库,感觉代码都不是很稳定,php版本也随时在升级。找了很久,发现centos
官方的一个test repo里面有php5.2.x,安装centos官方的rpm比较放心

1.添加yum repo php5.2.x
vi /etc/yum.repos.d/CentOS-Testing.repo
[c5-testing]
name=CentOS-5 Testing
baseurl=http://dev.centos.org/centos/$releasever/testing/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
priority=1

 

2.安装
yum install php

完成!

相关日志:

Tags: ,

2 Responses to “centos yum php5.2.x repo安装方法”

  1. 鸡巴 Says:

    靠,还是一样


  2. Yeast Infection Medication Says:

    Recent Favourite Sites…

    [...]below you’ll find my recommended links page http://www.yeastinfectiontreatmentcure.net/links/ with some excellent websites that I think you should definitely visit[...]…


留下您的脚印