Install PHP Mcrypt extension on RHEL 6

The php-mcrypt extension is not available on Redhat Enterprise Linux 6 although some applications such as Magento or phpMyAdmin require it to work properly.
We can easily install it though from the Fedora Project repositories.

1. Download the following RPM pacakges:

# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-1.el6.x86_64.rpm
# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm

2. Install them using YUM:

yum localinstall php-mcrypt-5.3.3-1.el6.x86_64.rpm libmcrypt-2.5.8-9.el6.x86_64.rpm

3. Reload Apache server to load the extension up:

# service httpd restart
Advertisements

9 thoughts on “Install PHP Mcrypt extension on RHEL 6

    • With sudo yum install php-mcrypt i have errors:

      php53-common-5.3.3-26.el5_11.x86_64 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
      The program package-cleanup is found in the yum-utils package.

  1. And i have this warning with the main proposal:

    warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
    Public key for php-mcrypt-5.3.3-3.el6.x86_64.rpm is not installed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s