You may get the below phpMyAdmin error for a couple different reasons which could be related to upgrading PHP or possibly on a new installation of phpMyAdmin. The issue can be resolved easily by installing or upgrading mcrypt on your server.
Error:Cannot load mcrypt extension. Please check your PHP configuration.
If you receive this error simply login to your server, which in this case was a 5.2 CentOS server, and install or upgrade mcrypt using the yum package manager. The package that needs to be installed for mcrypt to work properly with phpMyAdmin is php-mcrypt.
- yum install mcrypt
Your issues should now be resolved and you will no longer see this error on the phpMyAdmin login screen. If you continue to have issue find out what version of php-mcrypt installed and compare that to the version of PHP.
Locate PHP Version: command with example output
- [root@dev ~]# php -v
- PHP 5.2.9 (cli) (built: Mar 10 2009 16:42:52)
- Copyright (c) 1997-2009 The PHP Group
- Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
- with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies
Locate php-mcrypt Version: command with example output
- [root@dev ~]# rpm -qa | grep mcrypt
The versions need to match as shown above so if they do not match this should be the first place to start troubleshooting.