Windows 7 使用Wampserver 2.5在Windows 7 64位上安装Composer时出错

Windows 7 使用Wampserver 2.5在Windows 7 64位上安装Composer时出错,windows-7,installation,openssl,composer-php,file-get-contents,Windows 7,Installation,Openssl,Composer Php,File Get Contents,我正在尝试在W7 64x上安装Composer。使用site Composer提供的Windows安装程序(Composer setup.exe) 我已经安装了带有php5.5.12和Apache2.4.9的wampserver2.5。openssl是在php.ini中启用的 我在安装过程中出现以下错误: Download failed: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:

我正在尝试在W7 64x上安装Composer。使用site Composer提供的Windows安装程序(Composer setup.exe)

我已经安装了带有php5.5.12和Apache2.4.9的wampserver2.5。openssl是在php.ini中启用的

我在安装过程中出现以下错误:

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.
我安装了xampp和WPN XM,但使用两者的php.exe会显示以下错误:

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

确保PHP已安装并找到SSL证书

php.ini
中:

curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
如果证书丢失:从下载证书包并另存为
ca bundle.crt


(或者简单地使用Windows的服务器堆栈,它直接提供Composer:)

确保PHP安装并找到SSL证书

php.ini
中:

curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
如果证书丢失:从下载证书包并另存为
ca bundle.crt


(或者简单地使用Windows的服务器堆栈,它直接提供Composer:)

我安装了WPN-XM(WPNXM-0.8.2-Full-Setup-php55-w64.exe),但仍然显示一个错误。我将编辑我的ask。当您使用WPN-XM时,则已安装Composer。打开命令提示符,执行
composer
。完成。composer.phar位于
\bin\php
中,composer.bat作为快捷方式。php文件夹被添加到ENV路径中,这样您就可以进行全局访问。我安装了WPN-XM(WPNXM-0.8.2-Full-Setup-php55-w64.exe),但仍然显示一个错误。我将编辑我的ask。当您使用WPN-XM时,则已安装Composer。打开命令提示符,执行
composer
。完成。composer.phar位于
\bin\php
中,composer.bat作为快捷方式。php文件夹被添加到ENV路径中,以便您具有全局访问权限。