Error installing Composer on Windows 7 64bit with Wampserver 2.5

Asked

Viewed 777 times

1

I am trying to install Composer on W7 64bits. Using the Windows installer that the Composer website provides (Composer-Setup.exe).

I have installed Wampserver 2.5 with php5.5.12 and Apache2.4.9. Openssl is enabled in php.ini.

I am having the following errors in installation:

Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error
messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
file_get_contents(): Failed to enable crypto
file_get_contents(https://getcomposer.org/composer.phar): failed to open stream: operation
failed
The download failed repeatedly, aborting.

I installed xampp and WPN XM, but using php.exe both shows the following error:

Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org
Request to https://getcomposer.org/installer failed with errors:
SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed. Failed to enable crypto. Failed to open stream: operation failed
  • managed to solve the problem? If yes, put there how it got. I’m having similar problems.

2 answers

1

I believe you have to activate ssl in PHP, in your php.ini, look for the line:

;extension=php_openssl.dll

Remove the ;, save the file and restart Apache/Wamp, if the line is not found, add it.

  • Hi Guilherme, as I commented, "openssl is enabled in php.ini".

  • @Leofelipe in the PATH environment variables, what does it say? Otherwise, you can add your PHP.ini content to the question body?

  • I hadn’t been able to install Composer on W7 until after I formatted my PC. I think it had some configuration, or lack of it, that SSL was not enabled. After formatting and reinstalling the 64bit W7 Ultimate, I did the installation of Composer without any problem. even asssim vlw @Guilherme Nascimento

  • Probably @Leofelipe the previous version of your wamp was 32bit or Voce was editing the wrong php.ini (wamp has two php.ini files in different locations)

1


I hadn’t been able to install Composer on W7 until after I formatted my PC. I think it had some configuration, or lack of it, that SSL was not enabled.

After formatting and reinstalling the 64bit W7 Ultimate with WAMP 2.5, I installed Composer without any problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.