Error installing Composer on Windows 7 64bit with Wampserver 2.5

1

I'm trying to install Composer on W7 64bits. Using the installer for Windows that the Composer Web site 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'm having the following errors in the 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 from 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
    
asked by anonymous 19.04.2015 / 12:47

2 answers

1

I had not been able to install Composer in W7 until after I formatted my PC. I think it had some configuration, or lack thereof, that SSL was not enabled.

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

    
31.08.2015 / 14:16
1

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

;extension=php_openssl.dll

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

    
19.04.2015 / 22:44