phpmyadmin页面提示mcrypt extension is missing错误解决

这是一个mcrypt文件位置错误的bug

详细的bug信息请参考以下网址:

https://bugs.launchpad.net/ubuntu/+source/phpmyadmin/+bug/1236035

#mv -i /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/

#sudo php5enmod mcrypt

#/etc/init.d/apache2 restart

ubuntu下phpmyadmin显示缺少 mcrypt 扩展。请检查 PHP 配置。

更新:2014-05-24
一般来说出现这个问题是由于没有安装mcrypt和配置导致的。
ubuntu下安装:sudo apt-get install php5-mcrypt libmcrypt-dev
安装之后如果仍然显示错误,则需要配置php扩展,一般来说配置文件都是在/etc/php5/下
你会在/etc/php5/mods-available/下看到配置文件mcrypt.ini,也可能在/etc/php5/conf.d/下,这时你只要将它链接到/etc/php5/fpm/conf.d/下就可以(cli和cgi类似就行)
命令:ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/fpm/conf.d/20-mcrypt.ini