百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>数据库> centos yum 升级php到5.5的步骤详解
分享文章到:

centos yum 升级php到5.5的步骤详解

发布时间:01/15 来源: 浏览: 关键词:
下面我们来看一篇关于centos yum 升级php到5.5的教程了,希望这篇文章能够帮助到各位朋友,具体的细节如下.

查看服务器 php 列表

yum list | grep php
http://dl.fedoraproject.org/pub/epel/5/x86_64/

#rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-rpm-macros-5-7.noarch.rpm

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-rpm-macros-5-7.noarch.rpm

添加 epel 源

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

添加 remi 源

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

yum –enablerepo=remi,remi- php 55 install php -fpm php-common php-devel php-mysqlnd php-mb

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

显示需要安装

epel-release = 5 is needed by (installed) epel-rpm-macros-5-7.noarch

epel-release = 6 is needed by remi-release-6.8-1.el6.remi.noarch

2、remi

#rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

yum -y install php --enablerepo=remi
安装到5.5

yum --enablerepo=remi,remi-php55 install php-fpm php-common php-devel php-mysqlnd php-mb
安装gd库

yum install php-gd*
yum --enablerepo=remi,remi-php55 install php-gd*
Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.btte.net

* epel: mirrors.neusoft.edu.cn

* extras: mirrors.btte.net

* updates: mirrors.aliyun.com

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package php-gd.x86_64 0:5.3.3-48.el6_8 will be installed

–> Processing Dependency: php-common(x86-64) = 5.3.3-48.el6_8 for package: php-gd-5.3.3-48.el6_8.x86_64

–> Finished Dependency Resolution

Error: Package: php-gd-5.3.3-48.el6_8.x86_64 (updates)

Requires: php-common(x86-64) = 5.3.3-48.el6_8

Installed: php-common-5.5.38-4.el6.remi.x86_64 (@remi-php55)

php-common(x86-64) = 5.5.38-4.el6.remi

Available: php-common-5.3.3-47.el6.x86_64 (base)

php-common(x86-64) = 5.3.3-47.el6

Available: php-common-5.3.3-48.el6_8.x86_64 (updates)

php-common(x86-64) = 5.3.3-48.el6_8

You could try using –skip-broken to work around the problem

You could try running: rpm -Va –nofiles –nodigest

打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

共有8人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板