Michael Scarpa
Michael Scarpa

Reputation: 121

Upgrading to php 5.5 error Centos 7 Apache 2.4

So I'm trying to upgrade php versions. I have removed all of the 5.4 stuff and dependencies.

I am following this link https://webtatic.com/packages/php55/

I perform the first two steps:

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

Then this:

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

And it does some stuff and then I get these errors:

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

Found out that mmn means module magic number. And cant seem to find libgmp.so.3 for centos, so I am about to break my computer.

Thanks

Upvotes: 4

Views: 8675

Answers (4)

Bruno
Bruno

Reputation: 11

the following worked for me to upgrade PHP from 5.4.16 to 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*

To upgrade to 5.6.31 use instead:

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

The same works for 7.x (remi-php7x)

Upvotes: 1

Clarence
Clarence

Reputation: 721

I'd also encountered this problem. And after I cleaned the yum's cache, it disapeared:

sudo yum clean all
sudo yum install -y php55w

Hope it will help you

Upvotes: 1

Dylan Lin
Dylan Lin

Reputation: 1

Using EPEL7 with CentOS 7. To fix:

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

 #yum remove epel-release  

 #yum install epel-release 

Upvotes: 0

Ashutosh Gupta
Ashutosh Gupta

Reputation: 89

I'd also encountered this problem while installing php70w. And after I cleaned the yum's cache, it disapeared:

sudo yum clean all
sudo yum install -y php70w

Upvotes: 3

Related Questions