The mcrypt extension is missing. Please check your PHP configuration

UbuntuPhpmyadminUbuntu 13.10Linux Mint

Ubuntu Problem Overview


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.

Ubuntu Solutions


Solution 1 - Ubuntu

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

Solution 2 - Ubuntu

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

Solution 3 - Ubuntu

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.

Solution 4 - Ubuntu

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.

Solution 5 - Ubuntu

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)

Solution 6 - Ubuntu

Try this:

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

Solution 7 - Ubuntu

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestioncrgsqdmnView Question on Stackoverflow
Solution 1 - UbuntuMarc DelisleView Answer on Stackoverflow
Solution 2 - UbuntuIzzat Z.View Answer on Stackoverflow
Solution 3 - UbuntuSBerg413View Answer on Stackoverflow
Solution 4 - UbuntujrasorView Answer on Stackoverflow
Solution 5 - UbuntuVercasView Answer on Stackoverflow
Solution 6 - UbuntuthucnguyenView Answer on Stackoverflow
Solution 7 - Ubuntucode-8View Answer on Stackoverflow