0

I've removed php5.1 using

yum remove php\*

I've installed php5.3 using

yum install php53

Now I need to make sure that certain supporting packages are installed. So I tried this:

yum install php-xml php-pear php-mhash php-mcrypt php-mysql php-pdo php-gd

But I get errors, like:

Error: php53-common conflicts with php-common

I found some instructions here but am not sure if I should trust them or not.

Thank you

4
  • You need to install the php53-* extensions. The php-* extensions you mention above, are for the php package you removed (and require php-common - if you look closely, it will probably be one of the dependencies). So try, php53-xml, etc. Some packages might not be included in the CentOS repository, I would recommend adding the EPEL repository if you need other extensions (as it is fully compatible with CentOS, and trusted). I'd advise against adding random repositories (such as the one from the article you linked).
    – cyberx86
    Jan 28, 2012 at 3:45
  • @cyberx86, thank you. You and kswift are right about needing to use php53-*. Unfortunately, it did not work for 3 of the above. pear, mhash, and mcrypt. I will check with EPEL. Thank you! Jan 28, 2012 at 4:59
  • @cyberx86 Hey so I went to EPEL and did not find anything when I searched "mcrypt" there. Should I just add the repository and try yum install php53-mcrypt and see if it works? How do I know if they have it? Jan 28, 2012 at 5:13
  • Mcrypt is in EPEL - but I don't believe the other ones (mhash, pear) are. (See here for all the 'letter p' packages (EL 5 x64) and here for php53-mcrypt specifically)
    – cyberx86
    Jan 28, 2012 at 6:01

1 Answer 1

1

I think the packages you looking for are named something like php53-xml or php53-pear.

1
  • Hi, you are absolutely correct. I changed them all to php53 and most of them installed. But pear, mhash, and mcrypt did not. What do you think I should do? Jan 28, 2012 at 5:00

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.