M
M
Michael2020-07-13 20:22:40
PHP
Michael, 2020-07-13 20:22:40

CentOS php-readline conflict how to resolve?

Hello. I will say right away that I am a complete noob in CentOS, and I work with yum for the first time, so I don’t know the simplest commands to resolve such situations. Googled the problem everywhere, but did not find a solution, so I came back to you.

Introductory: vps server, CentOS 7 is
installed Trying to install composer
yum install composer

I get this output (at the end):

mistake

--> Processing Dependency: php-readline for package: php-symfony-console-2.8.12-2.el7.noarch
Package php-cli-5.4.16-48.el7.x86_64 is obsoleted by php-7.1-bin-zend-server-7.1.33-40.x86_64 which is already installed
---> Package php-symfony-css-selector.noarch 0:2.8.12-2.el7 will be installed
--> Finished Dependency Resolution
Error: Package: php-symfony-console-2.8.12-2.el7.noarch (epel)
           Requires: php-readline
           Available: php-cli-5.4.16-48.el7.x86_64 (base)
               php-readline
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest



Please tell me how to fix this. I'm trying to install ISP manager, and it doesn't work either, because of this error.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2020-07-13
@moonz

Only this helped

sudo yum -y remove php*

sudo yum install epel-release

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

sudo yum install mod_php72w php72w-opcache php72w-pdo php72w-mysql php72w-mbstring

sudo scl enable php72 bash

sudo yum update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question