Ayush Ghosh
Ayush Ghosh

Reputation: 487

Mcrypt PHP extension required

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.

Upvotes: 0

Views: 921

Answers (2)

Avinash Babu
Avinash Babu

Reputation: 6252

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

Upvotes: 0

Cathy
Cathy

Reputation: 28

Mcrypt is installed but not enabled use

sudo php5enmod mcrypt
sudo service apache2 restart

Upvotes: 1

Related Questions