【发布时间】:2013-04-11 11:36:30
【问题描述】:
我正在尝试更新项目中的 Zend Framework 2 库并遇到异常:
use@machine:/path/to/project# php composer.phar self-update
[Composer\Downloader\TransportException]
The "https://getcomposer.org/version" file could not be downloaded (HTTP/1.1 502 Bad Gateway)
也试过so,但错误依旧:
use@machine:/path/to/project# curl http://getcomposer.org/installer | php
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 166 100 166 0 0 1490 0 --:--:-- --:--:-- --:--:-- 4611
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
</body>
</html>
这里有什么问题?
【问题讨论】:
-
我会说他们的服务器有一个“时刻” -> getcomposer.org
-
嗯...我刚刚用
ping getcomposer.org尝试过。服务器正在发送响应:4 packages sent, 4 packages received, 0 packages lost... -
是的,服务器正在响应,但其他一些问题阻止它为请求的页面提供服务。
标签: php zend-framework2 composer-php