centos 5.4 yum升级php到5.3

post by rocdk890 / 2012-3-20 10:06 Tuesday linux技术

  公司新买的一台服务器,搭建环境是lamp,要求php是5.3的版本,因为我是yum安装的环境,所以只能找yum来对php升级,如果你们只想把php升级到5.2,可以看centos yum升级php和mysql这篇文章.
 系统:centos 5.4
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,好了就到这里.
点击查看原图

夜空- 本站版权
1、本站所有主题由该文章作者发表,该文章作者与夜空享有文章相关版权
2、其他单位或个人使用、转载或引用本文时必须同时征得该文章作者和夜空的同意
3、本帖部分内容转载自其它媒体,但并不代表本站赞同其观点和对其真实性负责
4、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予与删除并致以最深的歉意
5、原文链接:blog.slogra.com/post-158.html

标签: centos yum 更新 php 升级 update 5.3 php5.3

  1. 2014-09-27 11:17
    @laikk:应该是yum源地址失效了,看来你得重新找了.
  1. gravatar laikk
    2014-09-27 09:52
    输入:rpm --import .........
    输入:wget -P .........
    --2014-09-27 09:31:28--  xxxxx:......yum/webtatic.repo
    Resolving ....... 162.243.228.22
    Connecting to .......|162.243.228.22|:80... connected.
    ..... request sent, awaiting response... 404 Not Found
    2014-09-27 09:31:28 ERROR 404: Not Found.
  1. 2012-08-31 18:28
    @Christopher Meng:好东西都共享:)
  1. gravatar Christopher Meng
    2012-08-31 17:53
    http://rpms.famillecollet.com/enterprise/5/

    remi可谓专业人士了

评论: