Magento not seeing mcrypt in LAMP

There seems to be an issue with the mcrypt package in that it isn't included in the available mods after being installed.

  • https://stackoverflow.com/questions/19446679/mcrypt-not-present-after-ubuntu-upgrade-to-13-10
  • https://bugs.launchpad.net/ubuntu/+source/php-mcrypt/+bug/1241286

To fix, simply:

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/mcrypt.ini
sudo php5enmod mcrypt
sudo restart apache2

If the last command doesn't work, do sudo service apache2 restart instead.


The solutions is install php5-mcrypt module in and enable it. Use the below command sequence.

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

Follow the below url to install magento2 (M2) on ubuntu server.

http://gotechnies.com/install-magento2-ubuntu-server/