PHP 7.0 cURL不工作 - WAMP在Windows 10 64位上 [英] PHP 7.0 cURL not working - WAMP on Windows 10 64 bit

查看:204
本文介绍了PHP 7.0 cURL不工作 - WAMP在Windows 10 64位上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cURL在我的WAMP服务器上运行curl时不工作。任何人知道如何激活这个为PHP 7.0+?

cURL is not working when I run curl on my WAMP server. Anyone know how to activate this for php 7.0+?

我试图在php.ini中取消注释extension = php_curl.dll

I have tried to uncomment extension=php_curl.dll in php.ini

这是我的错误信息:

cURL Error #:SSL certificate problem: unable to get local issuer certificate


推荐答案


  1. https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt

  2. 将文件放在c:\wamp64\

  3. 将php.ini更改为以下

  1. Download ca-bundle.crt from https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
  2. Put the file in c:\wamp64\
  3. Change php.ini to the following

curl.cainfo =C:/wamp64/ca-bundle.crt

curl.cainfo="C:/wamp64/ca-bundle.crt"

openssl.cafile =C: /wamp64/ca-bundle.crt

openssl.cafile="C:/wamp64/ca-bundle.crt"

这对我有用。

注意:执行上述过程后,您必须重新启动服务器。

Note : You have to restart server after doing above process.

这篇关于PHP 7.0 cURL不工作 - WAMP在Windows 10 64位上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆