PHPMyAdmin mcrypt extension is missing

mcrypt extension is missing. Please check your PHP configuration.

This is the error message that was displayed with setting installing phpMyAdmin a new ubuntu 14.04 server.

The error message displayed was;

mcrypt extension is missing. Please check your PHP configuration.

It turns out that when you use TaskSel utility for installing doesn’t automatically install all the PHP compoments by default. So when you run the following commands;

$ sudo apt-get install tasksel
$sudo tasksel install lamp-server 
$sudo apt-get install phpmyadmin

If you start phpmyAdmin you may see a page similar to the below

Apparently this is a known issue, in that the mcrypt library has been installed in the wrong directory and needs to be moved. The followin commands will move the mcrypt component to the right location.

$ cd /etc/php5/mods-available
$ sudo ln -s ../conf.d/
$ sudo php5enmod mcrypt
$ sudo service apache2 restart

After the above commands have been completed, all you need to do is refresh your phpmyadmin page, login again. You’ll notice the error message will disappear and you can continue to use phpmyadmin as per normal.

Gary Woodfine

Freelance Full Stack Developer at
Helps businesses by improving their technical proficiencies and eliminating waste from the software development pipelines.

A unique background as business owner, marketing, software development and business development ensures that he can offer the optimum business consultancy services across a wide spectrum of business challenges.

Latest posts by Gary Woodfine (see all)