The mcrypt extension is missing. Please check your PHP configuration

隐身守侯 提交于 2019-12-03 01:28:59

问题


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.


回答1:


Try this:

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



回答2:


I've followed the exact tutorial with OP on digital ocean. The only steps that missing is to

sudo php5enmod mcrypt
sudo service apache2 restart 

and the error gone after restarting the apache service




回答3:


Adding this answer for anyone who encounters this issue with Linux Mint 17.

Just installed a LAMP stack on and was getting this error. The mycrpt.ini file was already inst the /etc/php5/mods-available directory. All that needed to be done was to run the command to enable the module:

sudo php5enmod mcrypt

Restart apache after that and you'll be good to go.




回答4:


I just stuffed a symbolic link into the Apache portion of php configuration. Platform: Xubuntu 14.04 LTS.

Details:

  1. cd /etc/php5/apache2/conf.d
  2. sudo ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini
  3. ls -l to see if the new link is there
  4. sudo apache2ctl restart

HTH.




回答5:


For those using a LEMP stack (nginx & php5-fpm), this is the solution

apt-get install php5-mcrypt
php5enmod mcrypt
service php5-fpm restart
service nginx restart

(run each with sudo, naturally)




回答6:


Try this:

sudo apt-get install mcrypt php5-mcrypt; php5enmod mcrypt; service apache2 restart



回答7:


I am on a Mac OS X Yosemite using Terminal, and I fix this error

the requested PHP extension mcrypt is missing from your system

by running the following commands :

brew update
brew upgrade
brew tap homebrew/dupes
brew tap josegonzalez/homebrew-php
brew install php54-mcrypt


来源:https://stackoverflow.com/questions/22721630/the-mcrypt-extension-is-missing-please-check-your-php-configuration

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!