Can't install php-soap to my PHP 7.0 centos

June 25, 2018 1.8k views
PHP CentOS

Hello,

I'm trying to install ext-soap to my php server. I have PHP 7.0 but when i say

"yum install php-soap" it tries to install soap for 5.4.6.
Here's my error log:

--> Running transaction check
---> Package php-soap.x8664 0:5.4.16-45.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-45.el7 for package: php-soap-5.4.16-45.el7.x86
64
--> Running transaction check
---> Package php-common.x8664 0:5.4.16-45.el7 will be installed
--> Processing Conflict: php70u-common-7.0.30-1.ius.centos7.x86
64 conflicts php-common < 7.0.30
--> Processing Conflict: php70u-json-7.0.30-1.ius.centos7.x8664 conflicts php-json < 7.0.30
--> Finished Dependency Resolution
Error: php70u-json conflicts with php-common-5.4.16-45.el7.x86
64
Error: php70u-common conflicts with php-common-5.4.16-45.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

How can I install for php 7.0?

2 Answers

try,
yum install php70w-soap

you can try

yum install --skip-broken php-soap

OR try

yum remove php*

before running the install

yum install php-soap
Have another answer? Share your knowledge.