centos php 5.4 安装教程,在CentOS 6.3上安装PHP 5.4.11

我的CentOs 6.3服务器上有

PHP 5.3.3,因为这个版本的

PHP现在很容易升级到PHP 5.4.11,但CentOs的默认存储库没有PHP> 5.3.3因此yum无法检测到更新的版本.

然后我在我的服务器上安装了remi存储库

rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

这些命令已成功安装存储库

现在升级PHP的命令

yum --enablerepo=remi,remi-test update httpd mysql mysql-server php php-common

但它失败,出现以下错误消息

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

如果我尝试yum info php相同的错误消息

基本上在安装这些存储库之后,yum不起作用,但是yum工作得更早了.

如果我删除这些存储库并尝试yum它没有任何错误.

如何将PHP升级到PHP 5.4.11版本?

编辑

正如@Michael建议我跑了

yum clean all

Loaded plugins: fastestmirror

Cleaning repos: base epel extras updates

Cleaning up Everything

Cleaning up list of fastest mirrors

`[root@www ~]# yum --obsoletes update

Loaded plugins: fastestmirror

Determining fastest mirrors

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

还是一样的错误

编辑2

epel.repo的内容

[epel]

name=Extra Packages for Enterprise Linux 6 - $basearch

#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

failovermethod=priority

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

[epel-debuginfo]

name=Extra Packages for Enterprise Linux 6 - $basearch - Debug

#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debug

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=1

[epel-source]

name=Extra Packages for Enterprise Linux 6 - $basearch - Source

#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMS

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch

failovermethod=priority

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

gpgcheck=1

互联网连接运行良好,我查了一下

wget http://google.com

编辑3

正如@Michael建议我跑了

URLGRABBER_DEBUG = 1 yum check-update

它最终出现以下错误

Problem with the SSL CA cert (path? access rights?)

2013-02-24 20:31:45,730 exception: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"

INFO:urlgrabber:exception: [Errno 14] PYCURL ERROR 77 - "Problem with the SSL CA cert (path? access rights?)"

2013-02-24 20:31:46,051 retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising

INFO:urlgrabber:retrycode (14) not in list [-1, 2, 4, 5, 6, 7], re-raising

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

因此,实际问题是SSL证书,但为什么它抱怨SSL证书,但它是有效的

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值