Introduction
phpMyAdmin is a popular open source package for web database administration. However, I notice that my phpMyAdmin showed a message on its home page “Cannot load mcrypt extension. Please check your PHP configuration”.
Need to install php5-mcrypt package with:
sudo apt-get install php5-mcrypt
then update the software package with:
sudo apt-get update
Finally, you should restart the apache2 server with:
sudo /etc/init.d/apache2 restart
If you visit your phpMyAdmin page again, the error is gone.
Reference
Ubuntu forum thread 653434