How to fix phpmyadmin – cannot load mcrypt extension ?

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.

Install/Upgrade mcrypt:

  • yum install php-mbstring //For Centos
  • sudo install php-mbstring //For Ubuntu

cannot load mcrypt extension 2

The versions need to match as shown above so if they do not match this should be the first place to start troubleshooting.

sudo /etc/init.d/httpd restart

končno, refresh to check its working.

Pustite Odgovori

Ta stran uporablja Akismet zmanjšati spam. Več o tem, kako se obdelujejo vaš komentar podatki.

Mi uporabljamo piškotke, da vam najboljšo spletno izkušnjo. Z dogovorom, da se strinjate z uporabo piškotkov v skladu z našim piškotek politiko.