I installed php 5.3 and some modules using
yum install php53-{module-name}
But mcrypt did not work.
I searched like this:
yum list php* | grep mcry
The only package that came up was
php-mcrypt.x86-64 5.1.6-15.e15.centos.1 extras
I have the same exact problem with mhash.
The results for php are even more confusing.
I know this is probably a dumb question, but any help would be appreciated. I am used to Ubuntu's simple "apt-get install" and everything works. CentOS seems to be a lot more detail oriented.
Thanks.
EDIT: Here's what I tried:
yum install php53-mcrypt
Result:
No package php53-mcrypt available
And trying this:
yum install php-mcrypt
Results in:
Error: php53-common conflicts with php-common
Because php-mcrypt tries to get php-common as a dependency (?) and I am trying to use php 5.3 rather than the default php 5.1 on CentOS 5.7.
Best Answer
Is php 5.3 really necessary for what you're doing? Don't automatically assume newer is better.
If you upgrade to CentOS 6 php 5.3 is the default.
What you have to understand is RedHat (and thus its clones) is very conservative about upgrading packages with good reason. If you want the to push it and get more upgraded packages, expect problems.
That said, the package you are looking for exists! All you need to do is
The EPEL repo contains more, and more upgraded packages to compliment the default repository.
Install EPEL Repository On 32-bit CentOS Linux 5.5:
Install EPEL Repository On 64-bit CentOS Linux 5.5: