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-php55 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

如果你是一名技术人员可加我QQ 2651-0442-02,如果你是java技术人还可以加入QQ群 1784-9136-0
你将得到的不仅仅是技术的交流,还有职业机会,人生解惑.
首发地址:月小升博客https://java-er.com/blog/centos-yum-php-5-5/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
此条目发表在 Linux, PHP 分类目录,贴了 , , 标签。将固定链接加入收藏夹。
既然来了,就评论一下,不会怀孕的

centos yum 升级php到5.5》有 1 条评论

  1. 美剧天堂 说:

    可以做php多版本共存

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">