码迷,mamicode.com
首页 > Web开发 > 详细

解决PHP curl https时error 77(Problem with reading the

时间:2015-10-18 01:28:35      阅读:212      评论:0      收藏:0      [点我收藏+]

标签:

解决PHP curl https时error 77(Problem with reading the SSL CA cert (path? access rights?))

服务器环境为CentOS,php-fpm,使用curl一个https站时失败,打开curl_error,捕获错误:Problem with reading the SSL CA cert (path? access rights?)

解决方案:
1. sudo yum install ca-certificates (无论有没有,安装确认一下)

2. 重启php-fpm,这步比较重要,更改底层的东西时一定要重启一下

3. curl时设置:curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0)


解决PHP curl https时error 77(Problem with reading the

标签:

原文地址:http://my.oschina.net/mingyuejingque/blog/518357

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!