Windows上的Apache/PHP中禁用了OpenSSL支持 [英] OpenSSL support disabled in Apache/PHP on Windows

查看:617
本文介绍了Windows上的Apache/PHP中禁用了OpenSSL支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

in phpinfo(); results give me this

OpenSSL支持已禁用(安装ext/openssl)

OpenSSL support disabled (install ext/openssl)

  1. 我在php.ini中更改了此内容

extension = php_openssl.dll

extension=php_openssl.dll

  1. 我通过WINDOWS CMD使用此代码

设置OPENSSL_CONF =/path/to/openssl.cnf

set OPENSSL_CONF=/path/to/openssl.cnf

  1. 在CMD中使用时已启用,但在phpinfo()中已禁用;

php --ri openssl OpenSSL支持=>已启用 OpenSSL库版本=> OpenSSL 1.0.2j 2016年9月26日 OpenSSL默认配置=> C:/jampp/php71/extras/ssl/openssl.cnf

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中向我显示此错误

its now working in CMD and but phpinfo(); not and in laravel 5 show me this error

调用未定义函数openssl_encrypt()

Call to undefined function openssl_encrypt()

谢谢

推荐答案

感谢您只需要将(php的DLL文件)包含到httpd.conf中即可.

Thank you all its just need includes the (DLLs files of php) into 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"

这篇关于Windows上的Apache/PHP中禁用了OpenSSL支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆