CentOS为yum添加官方源
由于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
2.安装
完成!
转载自:http://www.gaojinbo.com/centos-yum-php5-2-x-repo%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95.html
最后编辑: Sonic 编辑于2010/03/15 17: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
[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 upgrade php
完成!
转载自:http://www.gaojinbo.com/centos-yum-php5-2-x-repo%E5%AE%89%E8%A3%85%E6%96%B9%E6%B3%95.html
相关日志
建立安全的Webserver
How to Secure Linux Servers
install mod_security2 on centos / redhat
VirtualBox安装CentOS后如何安装增强功能
mysql手动复制数据库技巧
建立安全的Webserver
How to Secure Linux Servers
install mod_security2 on centos / redhat
VirtualBox安装CentOS后如何安装增强功能
mysql手动复制数据库技巧
最后编辑: Sonic 编辑于2010/03/15 17:25
管理linux的后台运行程序
linux的启动进程与服务

