自从我将Apache
上的Windows 10
从PHP 7.2
更新为PHP 7.4
以来,我遇到了问题...
我以为我一切都在运转。但是现在当我尝试安装插件时,WordPress告诉我:"Installation failed: Download failed. No working transports found."
我做了一些研究,发现我需要在我的extension=curl
中取消对extension=openssl
和php.ini
的注释。但是(重新启动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就不会启动。
编辑:
我在xamp / htdocs中做了echo 'Curl: ', function_exists('curl_init') ? 'Enabled' : 'Disabled';
,它告诉我突然禁用了cURL ...
我还能尝试什么?
答案 0 :(得分:0)
好的,没关系,我已修复它。事实证明
extension_dir = "ext"
我的php.ini
中的也被禁用了。去除后;一切正常。