【问题标题】:Laravel set up - SSL errorLaravel 设置 - SSL 错误
【发布时间】:2016-10-17 09:02:13
【问题描述】:

我在 IIS7 中使用 PHP(5.6.24)。我正在尝试设置 laravel,但出现以下错误。

SSL/TLS 保护需要 openssl 扩展,但不是 可用的。如果你不能启用 openssl 扩展,你可以 通过设置“disable-tls”禁用此错误,风险自负 选项为 true。

在 PHP.ini 文件中启用 SSL 扩展。

【问题讨论】:

    标签: php laravel ssl iis


    【解决方案1】:

    确保您在 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
    

    【讨论】:

    • 使用windows还是linux?
    • 如果您使用的是 linux,此链接可能会对您有所帮助 digitalocean.com/community/questions/… 并且您应该拥有 yum
    • 请检查ext目录中是否有opensll,例如php\ext\php_openssl.dll
    • 问题可能是您没有open_ssl 或其配置错误
    • @kreya 我已经更新了答案。请检查一下。这肯定会有所帮助。
    猜你喜欢
    • 2014-10-22
    • 2015-10-04
    • 2016-02-01
    • 2014-02-24
    • 1970-01-01
    • 2015-02-27
    • 2011-03-18
    • 2017-03-27
    • 2021-02-27
    相关资源
    最近更新 更多