Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to install composer via the composer-setup.exe from http://getcomposer.org/download/ and I'm getting the following error:

Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org

Request to https://getcomposer.org/installer failed with errors: SSL: The operation completed successfully. . Send of 25 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host. . Send of 23 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host. . Send of 2 bytes failed with errno=10054 An existing connection was forcibly closed by the remote host. . Failed to open stream: HTTP request failed!

I tried disabling my antivirus/firewall but I keep on getting the same error. I searched google but couldn't resolve this. Any help here? Thanks.

share|improve this question
 
enabled ssl extension? –  KA_lin Jun 13 '13 at 17:07
 
if you mean extension=php_openssl.dll yes it is enabled –  Systemfreak Jun 13 '13 at 17:16
add comment

1 Answer

Is SSL enabled in the correct php.ini?

If the installation approach via the windows executable fails, you might switch to just downloading the composer.phar to your PHP dir, e.g. C:\php\composer.phar.

Then add composer.bat file inside the C:\php folder which forwards commands to the PHAR file:

@ECHO OFF
php "%~dp0composer.phar" %*

Also set C:\php to your Systemvariables. This result in a global installaton of composer. You can call composer on any project path.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.