[[+content_image]]
K
K
Kantam2016-05-06 14:33:30
linux
Kantam, 2016-05-06 14:33:30

Centos 7 how to fix php-common conflict?

Hello.
I'm trying to install php-devel, but there is a conflict with php-common.

[[email protected] ~]# yum install php-devel
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
 * base: centos.trisect.eu
 * extras: centos.trisect.eu
 * updates: centos.trisect.eu
 * webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-cli(x86-64) = 5.4.16-36.el7_1 for package: php-devel-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-cli-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Conflict: php56w-common-5.6.20-1.w7.x86_64 conflicts php-common < 5.5.0
--> Finished Dependency Resolution
Error: php56w-common conflicts with php-common-5.4.16-36.el7_1.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[[email protected] ~]#

Is there any way to solve this conflict without completely reinstalling php?

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
K
Kantam, 2016-05-07
@Kantam

Thank you, I found a solution, completely reinstalled:
1. PHP-FPM
2. PHP
3. Remi
According to this instruction https://rtfm.co.ua/centos-ustanovka-nginx-php-fpm/
Thanks to iDoka for the command
to remove php
yum remove -yphp*

D
Dmitry Murzinov, 2016-05-06
@iDoka

this is a conflict of repositories, if you need to quickly, then
1. remove php
2. install the desired version of php, disabling the rep with the unnecessary one:

yum install --disablerepo=<repo-with-mature-php> php-devel

I
IceJOKER, 2015-06-14
@IceJOKER

RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domen.ru$
RewriteRule ^upload/(.*?)$ http://domen.ru/upload/$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question