Wednesday, June 20, 2012

Install PHP-Mcrypt on CentOS 6.2


# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
#yum install php-mcrypt

Restart httpd
#service httpd restart

2 comments:

  1. # rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    Using this command I got this result.

    Retrieving http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm
    curl: (22) The requested URL returned error: 404 Not Found
    error: skipping http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm - transfer failed

    Please let me know How to install mcrypt on centos 6.4

    ReplyDelete
  2. To install mcrypt on centos 6 for phpmyadmin, you will need to install the EPEL repo on your server

    i386
    # rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

    x86_64
    # http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

    then use yum command to install the mcrypt package
    # yum install php-mcrypt

    After you installed php-mcrypt package, you need to enable mcrypt extension module in /etc/php.d/mcrypt.ini
    # nano /etc/php.d/mcrypt.ini

    Find
    ; Enable mcrypt extension module
    extension=module.so

    Replace with
    ; Enable mcrypt extension module
    extension=mcrypt.so

    Finally restart httpd service in your centos/fedora server
    # service httpd restart

    http://namhuy.net/641/centos-6-install-mcrypt-for-phpmyadmin.html

    ReplyDelete