Error loading mcrypt extension: Extension "mcrypt" must be Loaded

Asked

Viewed 752 times

1

I’m trying to install the Gento locally but the same accuses;

PHP Extension "mcrypt" must be Loaded.

I already installed the curl and the gd but nothing I do to install mcrypt works, I’ve 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

  • Added a line in php.ini to load this ext? like this: extension=mcrypt.so, then don’t forget to restart apache.

  • Good evening, I wonder if the answer helped you? If not, inform might have had some doubt in the use of it.

  • @Guilhermenascimento the problem was in my linux distro same, I had to restart to be able to validate.

1 answer

1

As stated in the Soen on Ubuntu when we use sudo apt-get install php5-mcrypt it does not install the extension in the folder mods-available, to solve this it will be necessary to create a symlink, use this command on 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 the Apache:

sudo php5enmod mcrypt
sudo service apache2 reload

Browser other questions tagged

You are not signed in. Login or sign up in order to post.