Laravel安装未检测到Mcrypt [英] Mcrypt not detected with Laravel installation
问题描述
我正在尝试制作一个简单的Laravel应用.
I am trying to make a simple Laravel app.
它似乎已正确安装,但一旦我运行:
It seems to be installed correctly but once I run:
localhost/codehero-laravel/public/
localhost/codehero-laravel/public/
(示例代码)
它显示消息:需要Mcrypt PHP扩展."
it shows the message: "Mcrypt PHP extension required."
这很奇怪,因为当我运行php -m时,它显示为mcrypt.
It is weird because when I run php -m it appears mcrypt.
此外,如果我运行"$ php --info | grep 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?
非常感谢!
推荐答案
根据您的操作系统,您可能必须创建一个符号链接来进行mcrypt加密或将.so文件移动到另一个文件夹中.
Depending on your OS, you might have to create a symlink to mcrypt or move the .so file into another folder.
在Ubuntu上:
$ sudo php5enmod mcrypt
这篇关于Laravel安装未检测到Mcrypt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!