`
xitong
  • 浏览: 6176141 次
文章分类
社区版块
存档分类
最新评论

centos 5.4 yum升级php到5.3

 
阅读更多
1.先查看当前php版本
点击查看原图

2.升级php版本
rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo

webtatic.repo里的内容:

[webtatic]
name=Webtatic Repository $releasever - $basearch
#baseurl=http://repo.webtatic.com/yum/centos/5/$basearch/
mirrorlist=http://repo.webtatic.com/yum/centos/5/$basearch/mirrorlist
enabled=0
gpgcheck=1
gpgkey=http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

[webtatic-debuginfo]
name=Webtatic Repository $releasever - $basearch - Debug
#baseurl=http://repo.webtatic.com/yum/centos/5/$basearch/debug/
mirrorlist=http://repo.webtatic.com/yum/centos/5/$basearch/debug/mirrorlist
enabled=0
gpgcheck=1
gpgkey=http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

[webtatic-source]
name=Webtatic Repository $releasever - $basearch - Source
#baseurl=http://repo.webtatic.com/yum/centos/5/SRPMS/
mirrorlist=http://repo.webtatic.com/yum/centos/5/SRPMS/mirrorlist
enabled=0
gpgcheck=1
gpgkey=http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy

yum --enablerepo=webtatic update php mysql
这里说句升级php最好是连mysql一起升级,好了可以看到php已经升级成5.3.10,好了就到这里.
点击查看原图


转自http://blog.slogra.com/post-158.html


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics