简体   繁体   中英

Mcrypt not detected with Laravel installation

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM