加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

在Windows上的Apache / PHP中禁用了OpenSSL支持

发布时间:2020-12-14 02:54:59 所属栏目:Windows 来源:网络整理
导读:openssl用php7.1禁用了apache2.4 在phpinfo();结果给了我这个 OpenSSL support disabled (install ext/openssl) 我在php.ini中更改了此项 extension=php_openssl.dll 我使用WINDOWS CMD使用此代码 set OPENSSL_CONF=/path/to/openssl.cnf 在CMD中使用时启用
openssl用php7.1禁用了apache2.4

在phpinfo();结果给了我这个

OpenSSL support disabled (install ext/openssl)

>我在php.ini中更改了此项

extension=php_openssl.dll

>我使用WINDOWS CMD使用此代码

set OPENSSL_CONF=/path/to/openssl.cnf

>在CMD中使用时启用它,但在phpinfo()中禁用它;

php –ri openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2j 26 Sep 2016
Openssl default config => C:/jampp/php71/extras/ssl/openssl.cnf

它现在在CMD工作,但phpinfo();不在和laravel 5告诉我这个错误

Call to undefined function openssl_encrypt()

谢谢

解决方法

谢谢你只需要将(DLL的DLL文件)包含到httpd.conf中

LoadFile "C:/jampp/php/libeay32.dll"
LoadFile "C:/jampp/php/ssleay32.dll"
LoadFile "C:/jampp/php/php7ts.dll"
LoadFile "C:/jampp/php/libpq.dll"

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读