Wednesday, March 28, 2012

How to Install php-mcrypt on CentOS 6.2

Symptoms :
This error appeared when i try to use phpmyadmin on authentication type as cookie. mcrypt is necessary if you want to use cookie based authentication with phpymyadmin.
The mcrypt exension is missing. Please check your PHP configuration.
mcrypt
To install php-mcrypt on CentOS 6.2, follow the following steps :
1. Download epel repository :
[root@centos62 ~]# [root@centos62 ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
[root@centos62 ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
2. Install epel repository :
[root@centos62 ~]# rpm --import RPM-GPG-KEY-EPEL-6
[root@centos62 ~]# rpm -i epel-release-6-5.noarch.rpm
3. Simply run the following command to install php-mcrypt :
[root@centos62 ~]# yum install php-mcrypt -y

No comments:

Post a Comment