Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.