【问题标题】:Can't use openssl extension for SSL/TLS protection不能使用 openssl 扩展来进行 SSL/TLS 保护
【发布时间】:2017-07-07 08:29:21
【问题描述】:

我正在运行 Windows 10,使用 Laravel 5.4、宅基地 2.0,使用 VM 和 Vagrant。一切正常......除了我运行“laravel new blog”时,我得到:

  [Composer\Exception\NoSslException]
  The openssl extension is required for SSL/TLS protection but is not 
  available. If you can not enable the openssl extension,
  you can disable this error, at your own risk, by setting the 'disable-tls' 
  option to true.

我知道对此还有其他一些问题,但似乎还没有一个好的答案。此外,与此相关的大多数其他问题都与 WAMP 相关......因此,我认为在使用 VM 时再次询问是相关的。

我已经删除了 ; (分号)在我的 php.ini-development 和 php.ini-production 中的 extension=php_openssl.dll 前面。错误仍然存​​在。

当我在命令行中检查 openssl 版本时,我有: OpenSSL 1.0.2k 2017 年 1 月 26 日

【问题讨论】:

    标签: php laravel ssl homestead


    【解决方案1】:

    ...这是由于我的 PHP 安装有问题。我最终所做的(这是一个糟糕的解决方案)是安装 xampp 只是为了获得正确的 php 版本。然后我去了我的PATH(winbtn + break(paus)--->高级系统设置--->环境变量)并将php重新路由到xampp php版本,瞧!有用。因此,要么深入研究以进行正确的 PHP 安装,要么像我这样的 YOLO 并添加 xampp 只是为了获得正确的 php,然后它应该可以工作。 GL HF!

    【讨论】:

      猜你喜欢
      • 2016-05-16
      • 2022-01-16
      • 2011-03-10
      • 1970-01-01
      • 2019-06-27
      • 2015-07-18
      相关资源
      最近更新 更多