升级到PHP 5.5错误Centos 7 Apache 2.4

时间:2015-06-16 21:16:44

标签: php apache centos

所以我正在尝试升级php版本。我删除了所有5.4内容和依赖项。

我正在关注此链接https://webtatic.com/packages/php55/

我执行前两个步骤:

rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

然后这个:

[root@localhost ~]# yum install php55w php55w-opcache

它做了一些事情然后我得到了这些错误:

--> Finished Dependency Resolution
Error: Package: php55w-common-5.5.25-1.w6.x86_64 (webtatic)
       Requires: libgmp.so.3()(64bit)
Error: Package: php55w-5.5.25-1.w6.x86_64 (webtatic)
       Requires: httpd-mmn = 20051115
       Installed: httpd-2.4.6-31.el7.centos.x86_64 (@base)
           httpd-mmn = 20120211
           httpd-mmn = 20120211x8664
           httpd-mmn = 20120211-x86-64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

发现mmn表示模块幻数。并且似乎无法找到libgmp.so.3 for centos,所以我即将破坏我的电脑。

由于

4 个答案:

答案 0 :(得分:4)

安装php70w时我也遇到过这个问题。在我清理了yum的缓存之后,它消失了:

sudo yum clean all
sudo yum install -y php70w

答案 1 :(得分:1)

我也遇到过这个问题。在我清理了yum的缓存后,它消失了:

sudo yum clean all
sudo yum install -y php55w

希望它能帮到你

答案 2 :(得分:0)

EPEL7 CentOS 7 一起使用。修复:

 #rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm 

 #yum remove epel-release  

 #yum install epel-release 

答案 3 :(得分:0)

以下是我将PHP从5.4.16升级到5.5.38(CentOS 7)的原因:

yum install -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-10.noarch.rpm http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

yum --enablerepo=remi,remi-php55 update -y php*

要升级到5.6.31,请改为使用:

yum --enablerepo=remi,remi-php56 update -y php*

同样适用于7.x(remi-php7x)