我正在试图在我的MediaTemple DV机器上安装composer php(虽然说实话我真的不知道它是如何工作的,文档看起来相当差)。 我正在使用他们的指示
尝试使用以下方法全局安装:
$ curl -s https://getcomposer.org/installer | php
我的命令行(再次使用putty并以root身份login到我的服务器)想了一会儿,然后设置为下一个提示。 我运行一个简单的ls -l来检查它应该下载的文件,但没有运气。
任何想法可能会导致这个问题? 我已经testing,实际上已经安装了curl。
基于第一个答案,详细的回答是:
$ curl -vs https://getcomposer.org/installer | php * About to connect() to getcomposer.org port 443 * Trying 37.59.4.156... connected * Connected to getcomposer.org (37.59.4.156) port 443 * successfully set certificate verify locations: * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSLv2, Client hello (1): SSLv3, TLS handshake, Server hello (2): SSLv3, TLS handshake, CERT (11): SSLv3, TLS handshake, Server key exchange (12): SSLv3, TLS handshake, Server finished (14): SSLv3, TLS handshake, Client key exchange (16): SSLv3, TLS change cipher, Client hello (1): SSLv3, TLS handshake, Finished (20): SSLv3, TLS change cipher, Client hello (1): SSLv3, TLS handshake, Finished (20): SSL connection using DHE-RSA-AES256-SHA * Server certificate: * subject: /C=CH/CN=dl.packagist.org/[email protected] * start date: 2012-07-07 23:25:35 GMT * expire date: 2013-07-10 02:55:12 GMT * SSL: certificate subject name 'dl.packagist.org' does not match target host name 'getcomposer.org' * Closing connection #0 * SSLv3, TLS alert, Client hello (1):
尝试以详细模式执行curl(-v):
curl -vs https://getcomposer.org/installer | php