Home:ALL Converter>How to solve php versions mis-match (Centos 6)

How to solve php versions mis-match (Centos 6)

Ask Time:2020-10-28T19:19:34         Author:Andrey R1CF

Json Formatter

I am running a Centos 6 server. After some non-successful attempts to install php 7.2 I have dependencies problems (trying yum update php): So what is the best and safest way to reinstall php?

--> Running transaction check
---> Package libwebp.x86_64 0:0.4.3-3.el6 will be installed
---> Package php56w-common.x86_64 0:5.6.40-1.w6 will be obsoleted
--> Processing Dependency: php56w-common(x86-64) = 5.6.40-1.w6 for package: php56w-phpdbg-5.6.40- 
--> Finished Dependency Resolution
Error: Package: php56w-phpdbg-5.6.40-1.w6.x86_64 (@webtatic)
       Requires: php56w-common(x86-64) = 5.6.40-1.w6
       Removing: php56w-common-5.6.40-1.w6.x86_64 (@webtatic)
           php56w-common(x86-64) = 5.6.40-1.w6
       Obsoleted By: php-common-7.2.34-1.el6.remi.x86_64 (remi-php72)
           Not found
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

Author:Andrey R1CF,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/64571760/how-to-solve-php-versions-mis-match-centos-6
Remi Collet :

While upgrade from 3rd party repository to remi should work smoothly (this being a best effort), you have been hitten by an (old) issue, php-dbg should obsolete php56w-phpdbg. This have ben fixed, and will be in next update.\nFor now, simply remove this debugger before the upgrade.\nyum remove php56w-phpdbg\nyum update\nyum install php-dbg\n\nAs usually, see the Wizard instructions.\nP.S. webtatic seems a dead project, no update for ~1 year, so everybody should migrate to a better alternative, such as "remi" repository.",