【问题标题】:Composer behind Proxy with Authentication具有身份验证的代理背后的作曲家
【发布时间】:2015-12-13 21:11:23
【问题描述】:

我在公司代理后面使用 RHEL 6。我已按如下方式设置了 env 变量(在 csh 中):

setenv http_proxy "http://<user>:<pwd>@<addr>:<port>/"
setenv https_proxy "https://<user>:<pwd>@<addr>:<port>/"

运行作曲家时,出现以下错误:

Failed to enable crypto

代理设置在 curl 或 wget 中运行良好,但在 composer 中失败。这是作曲家的错误吗?有没有一种非临时的方式来完成这项工作?

【问题讨论】:

    标签: php proxy composer-php redhat rhel


    【解决方案1】:

    这个错误似乎是由我使用的 PHP 版本引起的。

    我使用的是 PHP 5.3.3(RHEL 6 上的最后一个稳定版本)。该版本中的 file_get_contents 实现可能存在错误。更新到 PHP 5.6 消除了加密问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-04
      • 2018-12-27
      • 1970-01-01
      相关资源
      最近更新 更多