Cannot load mcrypt

On a Debian server, you may log in to phpmyadmin and see the message, "Cannot load mcrypt etension. Please check your PHP configuration."

If you encounter this message, all you need to do (with root privileges)  is to run the following:

apt-get install php5-mcrypt


Then restart apache http server with the following command:

/etc/init.d/apache2 restart

You should then be able to log in to phpmyadmin without the mcrypt error.