Error loading extension mcrypt: extension "mcrypt" must be loaded [closed]

1

I'm trying to install magento locally but the same accuses;

  

PHP extension "mcrypt" must be loaded.

I already installed curl and gd but nothing I do to install mcrypt works, I already tried ...

sudo apt-get install php5-mcrypt

and

sudo apt-get --reinstall install php5-mcrypt

And every time I try:

service apache2 restart

I get message from fail

    
asked by anonymous 14.09.2015 / 21:52

1 answer

1

As this answer in the SOen in Ubuntu when we use sudo apt-get install php5-mcrypt it does not install the extension in the mods-available folder, To solve this it will be necessary to create a symlink , use this command in the terminal:

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

Then enable the extension using php5enmod and restart Apache:

sudo php5enmod mcrypt
sudo service apache2 reload
    
20.09.2015 / 03:30