繁体   English   中英

本地主机上的 WordPress 错误,XAMPP:“安装失败:下载失败。 没有找到工作交通工具”

[英]WordPress error on localhost, XAMPP: “Installation failed: Download failed. No working transports found”

自从我在Windows 10上从PHP 7.2PHP 7.4更新Apache后,我遇到了问题

我以为我的一切都在运行。 但是现在当我尝试安装插件时,WordPress 告诉我: "Installation failed: Download failed. No working transports found."

我做了一些研究,发现我需要在我的php.ini中取消注释extension=curlextension=openssl ,我这样做了。 但是(重新启动XAMPP后)它仍然无法正常工作。

我还找到了要添加的信息:

 Below this line: #LoadModule xml2enc_module modules/mod_xml2enc.so

     # load curl and open ssl libraries
      LoadFile “C:\php\libeay32.dll”
      LoadFile “C:\php\ssleay32.dll”
      LoadFile “C:\php\libssh2.dll”

And above this line: <IfModule unixd_module>

在 Apache 配置文件中。 但由于我只有文件libssh2.dll , Apache 在添加这些行后不会启动。

编辑:

我确实echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled'; echo 'Curl: ', function_exists('curl_init')? 'Enabled': 'Disabled'; 在 xamp/htdocs 中,它告诉我突然 cURL 被禁用......

我还能尝试什么?

好吧,没关系,我修好了。 事实证明

extension_dir = "ext" 

在我的php.ini中也被禁用。 删除后; 一切正常。

暂无
暂无

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

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