【问题标题】:composer setup in windows 8Windows 8 中的作曲家设置
【发布时间】:2015-09-17 00:03:56
【问题描述】:
我正在尝试为 Windows 安装 Composer-Setup,但安装时出现错误且无法继续
这个错误:
连接错误 [ERR_CONNECTION]:无法连接到
getcomposer.org 对https://getcomposer.org/installer 的请求失败
出现错误:SSL:握手超时。无法启用加密。失败的
打开流:操作失败
- 版本 php :5.6.8
- xampp
- Windows 8
【问题讨论】:
标签:
php
ssl
xampp
composer-php
【解决方案1】:
我确信 opnessl 已配置并且可以正常工作,但是它没有工作。
但我使用 v.p.n 并且一切都像时钟一样工作;)
【解决方案2】:
我找到了解决办法:
确保 SSL 证书已安装并可被 PHP 找到。
在php.ini:
curl.cainfo=/path/to/ssl-certs/ca-bundle.crt
openssl.cafile=/path/to/ssl-certs/ca-bundle.crt
如果缺少证书:从http://curl.haxx.se/ca/cacert.pem 下载证书包并保存为ca-bundle.crt。