Question

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!

Was it helpful?

Solution

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
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top