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.
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
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
/etc/apache2/mods-available
. Enjoy LAMP life :) –
Dowager 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.
I just stuffed a symbolic link into the Apache portion of php configuration. Platform: Xubuntu 14.04 LTS.
Details:
- cd /etc/php5/apache2/conf.d
- sudo ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini
- ls -l to see if the new link is there
- sudo apache2ctl restart
HTH.
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)
Try this:
sudo apt-get install mcrypt php5-mcrypt; php5enmod mcrypt; service apache2 restart
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
© 2022 - 2024 — McMap. All rights reserved.