laravel报错call to undefined function openssl cipher iv length()

Uiaoin 2019-06-09 4738

在本地配置好WNMP环境后,第一次运行laravel,出现报错call to undefined function openssl cipher iv length(),经爬网,发现问题根源是 OpenSSL扩展加载失败。

运行环境:PHP + NGINX

解决办法:打开php.ini配置文件,开启OpenSSL扩展,找到如下内容:

  1. ;extension=php_openssl.dll

去掉前面的分号(;)即可。


参考博客:https://blog.csdn.net/chenan0408/article/details/78816008