windows,php5升级php7 openssl报错disabled

本地wamp环境,添加了php7

windows,php5升级php7 openssl报错disabled

在laravel中使用redis,报错【Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length()】

在命令行运行【php -m】

可以查看到 openssl 扩展是加载到的;

查看phpinfo,发现上openssl提示disabled

----------------                分割线                ----------------


我被虐的过程就省略了,下面说一下个人感觉比较重要的解决步骤。

1、确认php.ini中的 openssl 扩展是开启状态

2、复制【libeay32.dll】&【ssleay32.dll】文件至【C:\Windows\System32】&【apache\bin】文件夹中

3、确认httpd.conf中 mod_ssl.so 是开启状态[这点很重要,我看好多人都会遗漏]

4、重启应用


最后:祝你可以看到如下这张图

windows,php5升级php7 openssl报错disabled