Php – centos 7 conflict error while trying to install php-mssql

centos7PHPphp56rpmsql server

I am trying to install php-mssql on centos 7 to connect to a remote mssql server, but when i run 'yum install php-msssql'. I am getting a conflict error

Error: php56w-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using --skip-broken to work around the problem
** Found 3 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.6.x86_64 has installed conflicts freeipa-
client: ipa-client-4.4.0-14.el7.centos.6.x86_64
ipa-client-common-4.4.0-14.el7.centos.6.noarch has installed conflicts 
freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.6.noarch
ipa-common-4.4.0-14.el7.centos.6.noarch has installed conflicts freeipa-
common: ipa-common-4.4.0-14.el7.centos.6.noarch

how can i solve this error and install php-mssql package?

Best Answer

It looks like you're trying to install the plugin from the webtatic repository while having your base PHP installed from the CentOS base repository. Webtatic expects you to use their PHP packages when installing extra packages using their repository. It also looks like you are trying to install a PHP 5.6 package despite having PHP 5.4 installed. To address this issue, you will either need to switch to using the webtatic base PHP packages, or use another repository to get the php-mssql package.

In this case, I would recommend using the epel repository. You can install it with yum install epel-release. You may have to modify your repository files in /etc/yum.repos.d/ and set repository priorities to prevent conflicts if you have a number of different repositories enabled.

Related Topic