缺少 mcrypt 扩展.请检查您的 PHP 配置 [英] The mcrypt extension is missing. Please check your PHP configuration
问题描述
我只是按照位于 https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu 同时修复多个其他我一路上遇到的错误,我被最后一个错误困住了.当我登录 phpMyAdmin 时,底部有一个巨大的红色错误,提示缺少 mcrypt 扩展.请检查您的 PHP 配置.".我通过 putty 在 Ubuntu 13.10 上安装了教程中列出的所有内容.
I just followed the tutorial located at https://www.digitalocean.com/community/articles/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu while fixing multiple other errors that I came across along the way and I'm stuck with one last error. When I log in to phpMyAdmin, there's a huge red error at the bottom saying "The mcrypt extension is missing. Please check your PHP configuration.". I installed everything listed in the tutorial on Ubuntu 13.10 via putty.
推荐答案
试试这个:
sudo apt-get install php5-mcrypt
sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart
这篇关于缺少 mcrypt 扩展.请检查您的 PHP 配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!