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/mcrypt.so
$ 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

Technical Director at Denizon
Gary is Technical Director at Denizon, an independent software vendor specialising in IoT, Field Service and associated managed services,enabling customers to be efficient, productive, secure and scalable in a way which helps them address and reduce their ecological impact.

Denizon's product line successfully integrate IoT, Artificial Intelligence and Blockchain technology to enable efficient, productive, secure and scalable solutions to help organisations address increasing energy demands, ecological impact and Health & Safety concerns of their staff.

Latest posts by Gary Woodfine (see all)