Ubuntu – Magento not seeing mcrypt in LAMP

13.1014.04lampmagentoPHP

I am running Ubuntu 13.10 desktop and installed a lamp stack (Apache 2.4.6, and PHP Version 5.5.3-1ubuntu2), and I set up virtual hosts. I also apt-get'ed php5-curl, and php5-mcrypt (no errors when installing)

I am trying to set up a Magento (1.8.0.0) development environment and the error I am getting is:

PHP extension "mcrypt" must be loaded.

How do I "load" mcrypt?

Best Answer

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

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.

Related Question