6

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?

karel
  • 122,292
  • 133
  • 301
  • 332
Daniel Toebe
  • 327
  • 3
  • 4
  • 9

2 Answers2

10

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.

Oli
  • 299,380
1

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/