简体   繁体   English

在Ampps上安装wordpress主题时出错(Softaculous)

[英]error when installing a wordpress theme on Ampps (Softaculous)

I have installed the latest version of Ampps (Softaculous), the version is 3.6 (windows 7 professional 64bit). 我安装了最新版本的Ampps(Softaculous),版本为3.6(windows 7 professional 64bit)。 Everything fine here. 这里一切都很好。 I have installed also Wordpress, ok everything fine here. 我也安装了Wordpress,确定一切都很好。 Then, I tried to install a wordpress theme but it didn't work, everytime I have this error (I tried several themes..): 然后,我试图安装一个wordpress主题,但它不起作用,每次我有这个错误(我尝试了几个主题..):

Blockquote "Installazione fallita: Download non riuscito. cURL error 60: SSL certificate problem: self signed certificate in certificate chain" Blockquote“Installazione fallita:下载非riuscito.cURL错误60:SSL证书问题:证书链中的自签名证书”

I guess I am missing some configuration but I don't know what.. can you help me? 我想我错过了一些配置,但我不知道...你能帮我吗? Thanks 谢谢

Edit: 编辑:

this is part of my php ini file: 这是我的php ini文件的一部分:

[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
curl.cainfo = "C:\wamp64\bin\apache\apache2.4.23\bin\cacert.pem"
curl_setopt($process, CURLOPT_CAINFO, dirname(__FILE__) . '/cacert.pem');
curl_setopt($process, CURLOPT_SSL_VERIFYPEER, true);

We can install a theme in 2 ways: 1. Download a theme. 我们可以通过两种方式安装主题:1。下载主题。 Place it in themes folder. 将其放在主题文件夹中。 Go to wp-admin panel and activate it. 转到wp-admin面板并激活它。 2. Go to wp-admin panel, download a theme and install it from admin panel only. 2.转到wp-admin面板,下载主题并仅从管理面板安装。

I think you followed the second way. 我想你是第二种方式。 It seems While downloading a theme from admin panel, it is using cURL. 似乎从管理面板下载主题时,它正在使用cURL。

curl used to include a list of accepted CAs, but no longer bundles ANY CA certs. curl曾经包含一个已接受的CA列表,但不再捆绑任何CA证书。 So by default it'll reject all SSL certificates as unverifiable. 因此,默认情况下,它会拒绝所有SSL证书作为无法验证的。 You'll have to get your CA's cert and point curl at it. 你必须得到你的CA的证书和点卷曲。 More details at cURLS's Details on Server SSL Certificates . 有关服务器SSL证书的详细信息,请参阅cURLS的详细信息。

The error is probably caused by not having an up-to-date bundle of CA root certificates. 该错误可能是由于没有最新的CA根证书捆绑引起的。

You need to make sure that your installation of PHP has one of these files, and that it's up to date (otherwise download one here: http://curl.haxx.se/docs/caextract.html ). 您需要确保您的PHP安装具有这些文件之一,并且它是最新的(否则请在此处下载一个: http//curl.haxx.se/docs/caextract.html )。 Then set in php.ini: 然后在php.ini中设置:

curl.cainfo = <absolute_path_to> cacert.pem

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM