1

I am trying to make a simple Laravel app.

It seems to be installed correctly but once I run:

localhost/codehero-laravel/public/

(the example code)

it shows the message: "Mcrypt PHP extension required."

It is weird because when I run php -m it appears mcrypt.

Also, if I run "$php --info | grep mcrypt" it appears:

mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value

I tried everything I've fallen into, so please, can you help me?

Thank you very much!

3
  • Which OS are you using ? Commented Feb 13, 2014 at 18:38
  • 1
    It's possible that the instance of php running in the command line is not the same as the one that is running on your webserver. Check phpinfo() and make sure mcrypt is enabled there. Commented Feb 13, 2014 at 21:18
  • Well that's embarrassing - thanks @user3158900 Commented Sep 22, 2016 at 18:34

1 Answer 1

2

Depending on your OS, you might have to create a symlink to mcrypt or move the .so file into another folder.

On Ubuntu:

$ sudo php5enmod mcrypt
Sign up to request clarification or add additional context in comments.

1 Comment

That was it, I had several php versions in my computer and the one I was using did not have the mcrypt.so :S Such a silly mistake, but it took me some time to realize it...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.