PHP Logo

Install PHP Mcrypt extension on CentOS 6 in 3 Supper Easy Steps

The php-mcrypt extension is not available on CentOS 6 or RHEL 6 (with/without…

The php-mcrypt extension is not available on CentOS 6 or RHEL 6 (with/without Parallels Plesk 11) although some applications such as Magento or phpMyAdmin require it to work properly.
We can easily install it though from the Fedora Project repositories or any other repository that include php-mcrypt.

1. Download the following RPM pacakges by using wget command:

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

Linux

Installing rar/unrar On CentOS 6

Open up ssh client and connect to the server as root user.…

Open up ssh client and connect to the server as root user.

For 32bit:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i386.rpm

For 64bit:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

Install DAG’s GPG key:
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt

If you get an error message like the following the key has already been imported:
[error]error: http://apt.sw.be/RPM-GPG-KEY.dag.txt: key 1 import failed.[/error]