Centos – php56w-common conflicts with older version of php (Centos)

centosinstallationPHPvagrantyum

I am trying to update my vagrant box to use PHP 5.6, and I am basically doing the following process on the command line.

  • sudo yum remove php* (remove PHP)
  • wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm (Installs the latest remi repo:)
    rpm -Uvh remi-release-6*.rpm
  • sudo yum install php php-common php-devel php-fpm php-gd php-mbstring php-mcrypt php-mysqlnd php-pdo php-pear php-soap php-xml php-pecl-apcu php-pecl-xdebug php-pecl-amqp

The first two steps seem fine however on the final step when doing the 'setup install process' I get the following error :

Error: php56w-common conflicts with php-common-5.3.3-46.el6_6.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

I need all of the modules above compatible with PHP 5.6, can anyone suggest what I should do next to get this working?

Best Answer

You should do

sudo yum install php56w php56w-common ...

instead of

sudo yum install php php-common, ...