laravel5.1出现No supported encrypter found错误的解决办法
来源:互联网 发布:快速排序算法c语言 编辑:程序博客网 时间:2024/05/19 01:33
问题描述:在使用laravel5.1进行项目开发的时候,出现了“No supported encrypter found. The cipher and / or key length are invalid.”的报错信息,导致页面无法显示。
网上的绝大多数答案都是直接执行php artisan key:generate即可。有些人发现可行,也有些并没有解决。
首先解决这个问题的第一步是要看config/app.php中的cipher值:
1. 如果cipher的值是AES-256-CBC,那么通过生成新的key,然后再重启nginx和php-fpm就可以解决。这时生成的新key就会直接写入到.env文件内。
2. 但如果cipher是其他值,例如rijndael-256,就需要安装和启动mcrypt模块。AES-256-CBC不需要的原因是因为AES-256-CBC算法对应的底层是用openssl实现的,而与mcrypt无关。rijndael-256则是依赖于mcrypt模块。
- 检查mcrypt是否安装。方法可以是执行php -r “print_r(mcrypt_list_algorithms());”有无输出结果,还有一种是查看phpinfo()信息。
- 如果已经安装了就启动mcrypt模块。方法是执行:php5enmod mcrypt
- 最后重启nginx和php-fpm即可
0 0
- laravel5.1出现No supported encrypter found错误的解决办法
- laravel 配置 No supported encrypter found
- No supported encrypter found. The cipher and / or key length are invalid.
- laravel No supported encrypter found. The cipher and / or key length are invalid.
- No supported encrypter found. The cipher and / or key length are invalid.
- laravel No supported encrypter found. The cipher and / or key length are invalid
- Laravel No supported encrypter found. The cipher and / or key length are invalid
- No supported encrypter found. The cipher and / or key length are invalid.
- TortoiseGit连接github出现disconnected no supported错误解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法(1)
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- (转)安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- vtk使用过程中出现 "no override found for ***"错误的解决办法
- 安装mysql,在./configure时出现错误:error: No curses/termcap library found的解决办法
- Mac Matlab R2014b 解决Mex 出现No supported compiler or SDK was found的问题
- MongoDB索引-初级篇
- Android BroadcastReceiver 的简单应用
- C++ 容器 new 删除问题
- 动画开源库NineOldAndroids的使用
- 怎么把XMind制作的甘特图导出为PDF
- laravel5.1出现No supported encrypter found错误的解决办法
- openwrt: br-lan: reveived packet on eth0 with own address as source address
- Android N中不再支持“Crypto”的解决方案
- JavaWeb从入门到精通(六)-自定义标签
- JVM
- SQL Server 2016 SP_SpaceUsed 新参数@OneResultSet
- Linux kernel 中断之proc接口之irq
- Matlab求点到你直线的垂直距离
- JS基础--输入框获取焦点