Laravel报错Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()

时间:2021-12-02 06:23:24

nginx:

在phpstudy中运行Laravel一键安装包时报错:Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(),产生错误的原因是没开启php_openssl扩展,开启即可

apache:

  1. 检查http.conf   LoadModule ssl_module modules/mod_ssl.so
  2. php.ini开启extension=php_openssl.dll
  3. 将php7.1要目录下的libeay32.dll和ssleay32.dll文件复制并替换到apache\bin目录下,再次启动Apache (注意事先备份一下Apache/bin目录下的相应文件)