0

I installed laravel via composer, but when running the site its giving an error of

Mcrypt PHP extension required.

I installed php5-mcrypt also, but still the error persist.

Ayush Ghosh
  • 487
  • 2
  • 10

2 Answers2

1

Mcrypt is installed but not enabled use

sudo php5enmod mcrypt
sudo service apache2 restart
mouhammed
  • 924
  • 8
  • 16
Cathy
  • 28
  • 3
0

You need to check that wheather the configuration files has been linked properly.It can be done via php5enmod.

Remove the symlink created by

sudo rm /etc/php5/apache2/conf.d/20-mcrypt.ini

Then use the php5enmod tool

sudo php5enmod mcrypt

Finally reload apache

sudo service apache2 reload

Check the source

Community
  • 1
  • 1
Avinash Babu
  • 6,171
  • 3
  • 21
  • 26