How to Install php-mcrypt on CentOS 6.3

Related Articles

mcrypt exension for PHP is necessary if we want to use cookie based authentication with phpymyadmin. In default CentOS 6.3 yum repository or in CentOS 6.3 installation CD/DVD, php-mcrypt exension are not included. To install php-mcrypt on CentOS 6.3, we have to use third party yum repository. Follow this steps :

1. Download epel repository :

[root@centos62 ~]# wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.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-7.noarch.rpm

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

[root@centos63 ~]# yum install php-mcrypt -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirror1.ku.ac.th
 * epel: mirrors.ispros.com.bd
 * extras: mirror.issp.co.th
 * updates: mirror1.ku.ac.th
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:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 18 k
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
  Installing : php-mcrypt-5.3.3-1.el6.i686                                                      1/1
  Verifying  : php-mcrypt-5.3.3-1.el6.i686                                                      1/1

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

Complete!
Sign up for the WP Engine affiliate program and receive a minimum of $150 per referral!

As always if you need any help you can reach us on twitter @ehowstuff or drop us a comment below. Jumping through archives page to read more articles..


Skytech is a part time blogger that has over 6 years experience in servicing, repairing and configuring computers and administering the server systems.

Related Articles

  • Gaston

    Resolviendo dl.fedoraproject.org… 209.132.181.26, 209.132.181.27, 209.132.181.23, …

    Connecting to dl.fedoraproject.org|209.132.181.26|:80… conectado.

    Petición HTTP enviada, esperando respuesta… 404 Not Found

    2013-03-15 11:44:35 ERROR 404: Not Found.

  • newbieapache

    do we need to recompile apache after installing? i am newbie. thanks

Powered by WordPress · Designed by Theme Junkie