Cannot load mcrypt extension. Please check your PHP configuration

January 19, 2009


 

On a pretty new CentOS server install I set up phpmyadmin with cookie authentication, only to log in for the first time to see a message which stated "Cannot load mcrypt extension. Please check your PHP configuration". Installing the mcrypt extension on CentOS and enabling mcrypt in php.ini is easy. And here I'll show you how.

Installing mcrypt extension

mcrypt is necessary if you want to use cookie based authentication with phpymyadmin. Installing mcrypt on CentOS is done with the following command:

  1. yum install php-mcrypt

Once you've done that to install the mcrypt extension, mcrypt should already be added to php.ini. All you need to do to load the php mcrypt extension is to restart your web server like this:

  1. service httpd restart

Now when you log into phpmyadmin, you'll no longer see the message  "Cannot load mcrypt extension. Please check your PHP configuration".

If you've done the two steps above, mcrypt will be installed, enabled in php.ini, and loaded so that encryption will be working properly.

 


Muhammad, 02-06-10 02:19:
I had been trying to solve this issue, hence visited plenty of sites, but my search stoped here!

Add comment

* - required field

*

CAPTCHA image for SPAM prevention
If you can't read the word, click here.
*
*
 

Netdip.com is an excellent web site that's powered by TYPO3 and other great open source software. Netdip.com is also a fat free alternative to ice cream.