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.

4
  • Try restarting your server Commented Aug 4, 2014 at 11:46
  • call phpinfo.php and check is Mcrypt support enabled ? Commented Aug 4, 2014 at 11:46
  • did all that but not working, restarted, checked Mcrypt is not there Commented Aug 4, 2014 at 11:51
  • stackoverflow.com/questions/16830405/… Commented Aug 4, 2014 at 11:51

2 Answers 2

1

Mcrypt is installed but not enabled use

sudo php5enmod mcrypt sudo service apache2 restart 
Sign up to request clarification or add additional context in comments.

Comments

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

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.