How to Install php-mcrypt on CentOS 6.2

Share this Article :

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 :

[[email protected] ~]# [[email protected] ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
[[email protected] ~]# wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6

2. Install epel repository :

[[email protected] ~]# rpm --import RPM-GPG-KEY-EPEL-6
[[email protected] ~]# rpm -i epel-release-6-5.noarch.rpm

3. Simply run the following command to install php-mcrypt :

[[email protected] ~]# yum install php-mcrypt -y
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                                                | 4.0 kB     00:00
 * base: centos.maulvi.net
 * epel: mirror01.idc.hinet.net
 * extras: centos.maulvi.net
 * rpmforge: fr2.rpmfind.net
 * updates: centos.maulvi.net
CentOS6.2-Repository                                                         | 4.0 kB     00:00 ...
CentOS6.2-Repository/primary_db                                              | 3.5 MB     00:00 ...
base                                                                         | 3.7 kB     00:00
base/primary_db                                                              | 3.5 MB     00:33
epel                                                                         | 4.3 kB     00:00
epel/primary_db                                                              | 3.5 MB     00:40
extras                                                                       | 3.5 kB     00:00
extras/primary_db                                                            | 6.4 kB     00:00
rpmforge                                                                     | 1.1 kB     00:00
rpmforge/primary                                                             | 1.5 MB     00:21
rpmforge                                                                                  4248/4248
updates                                                                      | 3.5 kB     00:00
updates/primary_db                                                           | 1.1 MB     00:13
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i686 0:5.3.3-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch                Version                    Repository           Size
====================================================================================================
Installing:
 php-mcrypt                i686                5.3.3-1.el6                epel                 18 k

Transaction Summary
====================================================================================================
Install       1 Package(s)

Total download size: 18 k
Installed size: 38 k
Downloading Packages:
php-mcrypt-5.3.3-1.el6.i686.rpm                                              |  18 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : php-mcrypt-5.3.3-1.el6.i686                                                      1/1

Installed:
  php-mcrypt.i686 0:5.3.3-1.el6

Complete!

2 Comments

  1. Jo

Leave a Reply