【发布时间】:2016-10-17 09:02:13
【问题描述】:
我在 IIS7 中使用 PHP(5.6.24)。我正在尝试设置 laravel,但出现以下错误。
SSL/TLS 保护需要 openssl 扩展,但不是 可用的。如果你不能启用 openssl 扩展,你可以 通过设置“disable-tls”禁用此错误,风险自负 选项为 true。
在 PHP.ini 文件中启用 SSL 扩展。
【问题讨论】:
我在 IIS7 中使用 PHP(5.6.24)。我正在尝试设置 laravel,但出现以下错误。
SSL/TLS 保护需要 openssl 扩展,但不是 可用的。如果你不能启用 openssl 扩展,你可以 通过设置“disable-tls”禁用此错误,风险自负 选项为 true。
在 PHP.ini 文件中启用 SSL 扩展。
【问题讨论】:
确保您在 ext 目录上有 php_openssl.dll
路径可能是
php\ext\php_openssl.dll
如果您使用的是 xampp,路径可能会有所不同。
如果找不到,请从这里下载
http://www.opendll.com/index.php?file-download=php_openssl.dll&arch=32bit&version=5.4.3.0
然后移动到ext目录
然后将php_openssl.dll路径改成php.ini
; Directory in which the loadable extensions (modules) reside.
; extension_dir = "./" #path should match ext dir
; On windows:
extension_dir = "ext"
...
extension=php_openssl.dll
【讨论】:
yum
ext目录中是否有opensll,例如php\ext\php_openssl.dll
open_ssl 或其配置错误