Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to get php-mcrypt running on a CentOS 4.4 box, so I can use a PHP mcrypt module (as per company policy).

I have tried installing it via yum, as I did with a CentOS 5.5 box, with no luck.

[root@server www]# yum install php-mcrypt
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: php-mcrypt
Nothing to do

[root@server www]# cat /etc/redhat-release 
CentOS release 4.4 (Final)

I have very little experience with CentOS, so I don't really know what to do next...

share|improve this question

1 Answer 1

up vote 1 down vote accepted

For CentOS 4.x, php-mcrypt is in the centoplus repository. It may be installed by using the following command.

yum install php-mcrypt --enablerepo=centosplus

CAUTION!! The version of php-mcrypt installed on your server must match the version of php (or, at least, be compiled against the same libraries) on your server. Installing the php-mcrypt RPM from the centosplus repository will result in a major version change of PHP -- you will be upgraded from 4.x.x to 5.1.x. This may or may not be a problem for your applications.

Alternately, you might like to use the Atomicorp yum repository. They have PHP 5.2, and are frequently updated for the latest versions of the LAMP stack.

share|improve this answer
    
Thanks, I will bug one of our SysAdmins to get the box updated with the new repos. –  Valorin Mar 16 '11 at 21:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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