Mcrypt not detected with Laravel installation

本小妞迷上赌 提交于 2019-12-24 11:51:11

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/21762604/mcrypt-not-detected-with-laravel-installation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!