找不到mcrypt =>调用未定义的函数Laravel \ mcrypt_create_iv() [英] can't find mcrypt => Call to undefined function Laravel\mcrypt_create_iv()

查看:122
本文介绍了找不到mcrypt =>调用未定义的函数Laravel \ mcrypt_create_iv()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试设置Laravel并继续遇到此错误.我通过brew安装了mcrypt,它位于/usr/local/Cellar中.有什么想法吗? ..如果有问题,它也不会显示在终端命令php -m中.我正在使用Macs本机Web服务器运行Mountaion Lion.

Trying to set up Laravel and keep getting hit with this error. I installed mcrypt through brew and it is located in /usr/local/Cellar. Any thoughts? .. It's not showing up in terminal command php -m either, if that matters. I'm running Mountaion Lion with macs native web server.

推荐答案

您还需要在php.ini文件中启用它,并可能重新启动Apache.

You need to enable it in your php.ini file as well and probably restart Apache.

php.ini中,您会找到;mcrypt.so并从其中删除;.

In php.ini you will find ;mcrypt.so and remove the ; from it.

或者,如果不在其中,只需在某处添加mcrypt.so.

Or, if it's not in there, just add mcrypt.so somewhere.

从PHP 7.0.0开始不建议使用salt选项.现在,最好只使用默认情况下生成的盐.

Also the salt option has been deprecated as of PHP 7.0.0. It is now preferred to simply use the salt that is generated by default.

这篇关于找不到mcrypt =>调用未定义的函数Laravel \ mcrypt_create_iv()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆