Laravel报错Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()
nginx:
在phpstudy中运行Laravel一键安装包时报错:Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(),产生错误的原因是没开启php_openssl扩展,开启即可。
apache:
- 检查http.conf LoadModule ssl_module modules/mod_ssl.so
- php.ini开启extension=php_openssl.dll
- 将php7.1要目录下的libeay32.dll和ssleay32.dll文件复制并替换到apache\bin目录下,再次启动Apache (注意事先备份一下Apache/bin目录下的相应文件)
赞赏码
![](https://files.cnblogs.com/files/lxwphp/zhifubao2.bmp)
![](https://files.cnblogs.com/files/lxwphp/weixin.bmp)
非学,无以致疑;非问,无以广识