[英]cURL error 60 when Installing WordPress plugin
I am getting a error when installing a WordPress plugin. 安装WordPress插件时出现错误。
Download failed. 下载失败。 cURL error 60: SSL certificate problem: unable to get local issuer certificate cURL错误60:SSL证书问题:无法获取本地颁发者证书
I've tried to modify the php.ini file by adding a cacert.pem to 我试图通过将cacert.pem添加到来修改php.ini文件
curl.cainfo = /path/cacert.pem curl.cainfo = /path/cacert.pem
I'm running WordPress on an Ubuntu server with apache2 and PHP 7.0. 我在具有apache2和PHP 7.0的Ubuntu服务器上运行WordPress。
Finally got this to work! 终于有了这个工作! I had this issue for hours, because i was editing the wrong php.ini from other answers here on stackoverflow. 我遇到这个问题已经有几个小时了,因为我在stackoverflow上从其他答案中编辑了错误的php.ini。
here's what i did 这是我所做的
Download the certificate bundle. 下载证书捆绑包。
Put it inside of C:\\wamp64\\bin\\php\\your php version\\extras\\ssl
将其放在C:\\wamp64\\bin\\php\\your php version\\extras\\ssl
Make sure the file mod_ssl.so
is inside of C:\\wamp64\\bin\\apache\\apache(version)\\modules
确保文件mod_ssl.so
是内部的C:\\wamp64\\bin\\apache\\apache(version)\\modules
Enable mod_ssl
in httpd.conf
inside of Apache directory C:\\wamp64\\bin\\apache\\apache2.4.27\\conf
在Apache目录C:\\wamp64\\bin\\apache\\apache2.4.27\\conf
中的httpd.conf
启用mod_ssl
Enable php_openssl.dll
in php.ini
. 在php.ini
启用php_openssl.dll
。 Be aware my problem was that I had two php.ini files and I need to do this in both of them. 请注意,我的问题是我有两个php.ini文件,而我两个都需要这样做。 One is the one you get from your WAMP taskbar icon here. 一种是您从此处的WAMP任务栏图标获得的一种。
and the other one is located in C:\\wamp64\\bin\\php\\php(Version)
另一个位于C:\\wamp64\\bin\\php\\php(Version)
find the location for both of the php.ini
find the line where it says curl.cainfo =
and give it a path like this 找到两个php.ini
的位置,找到它说curl.cainfo =
的行,并给它这样的路径
curl.cainfo = "C:\\wamp64\\bin\\php\\php(Version)\\extras\\ssl\\cacert.pem"
Now restart your server and you should be good to go 现在重新启动服务器,您应该一切顺利
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.