首页 » php

Windows 下安装或运行composer出现错误

   发表于:php评论 (0)   热度:1454

错误代码 : 

      E:\data\www\symfony-2.5.6>php -f D:/wamp/php-5.6.2-x64/composer.phar installLoading composer repositories with package informationInstalling dependencies (including require-dev)SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed”

主要原因是没有安装CA证书导致的!!!

下载CA证书:http://curl.haxx.se/docs/caextract.html

修改php.ini 文件

添加一行openssl.cafile= D:/wamp/php-5.6.2-x64/verify/cacert.pem

(。・v・。)
喜欢这篇文章吗?欢迎分享到你的微博、QQ群,并关注我们的微博,谢谢支持。