I followed this tutorial to update PHP from 5.3 version to 5.4. My distro is CentOS 5.5.

After running the following command:

yum --enablerepo=remi,remi-test install httpd php php-common  

I get following error:

    --> Finished Dependency Resolution
php53-common-5.3.3-13.el5_8.i386 from updates has depsolving problems
  --> php53-common conflicts with php-common
Error: php53-common conflicts with php-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

How can I solve this error?


Remove php-zts and recompile this extension or regenerate the RPM package for it when you finished installation of php 5.4.

yum remove php-zts

  • Thanks, now it say: Error: php53-common conflicts with php-common – PHPst Oct 16 '12 at 12:10
  • In general, large unwieldy cluster*.*. packages are updated as a group. Remove all php- packages, then yum install php php-common php-zts php-devel and whatnot, and keep adding missing packages to the yum command line until it does not complain anymore. – Deer Hunter Oct 16 '12 at 13:29
  • Is there any way that this be done automatically? Some times ago I uninstalled some packages in Ubuntu and it removed a lot of other packages as well, and a lot of trouble .... – PHPst Oct 16 '12 at 15:13

I used following code and I succeeded to install PHP 5.4:

yum erase php-common  
yum --enablerepo=remi,remi-test install php
  • Does phpmyadmin works in your system after php-common replace by php524? – Yurij73 Jan 7 '13 at 8:24

is easy,use remi repo

$ wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm 
$ wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm 
$ rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm 

change enabled to 1

vim /etc/yum.repos.d/remi.repo
$ yum clean all 
$ yum makecache
$ yum --disablerepo=* --enablerepo=remi update php

for your information:Update to PHP 5.5 from Remi repo on CentOS 6.5


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.