我正在尝试让我的博客与自动更新一起工作,最近我被一个“黑客”攻击,其中有人重写了一篇文章(没有太恶意,但我们丢失了这篇文章)。问题是自动更新似乎不起作用。
我不确定这是否相关,但我在仪表板上发现以下错误:
RSS错误:WP HTTP错误:cURL错误6:无法解析主机:wordpress。组织机构
通过命令行运行连接良好:
curl --head --insecure -v http://planet.wordpress.org
* Rebuilt URL to: http://planet.wordpress.org/
* Hostname was NOT found in DNS cache
* Trying 66.155.40.250...
* Connected to planet.wordpress.org (66.155.40.250) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: planet.wordpress.org
> Accept: */*
>
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
* Server nginx is not blacklisted
< Server: nginx
Server: nginx
< Date: Tue, 07 Mar 2017 06:51:04 GMT
Date: Tue, 07 Mar 2017 06:51:04 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 174858
Content-Length: 174858
< Connection: keep-alive
Connection: keep-alive
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Last-Modified: Tue, 07 Mar 2017 06:45:10 GMT
Last-Modified: Tue, 07 Mar 2017 06:45:10 GMT
< X-Frame-Options: SAMEORIGIN
X-Frame-Options: SAMEORIGIN
< X-nc: EXPIRED lax 250
X-nc: EXPIRED lax 250
< Accept-Ranges: bytes
Accept-Ranges: bytes
<
* Connection #0 to host planet.wordpress.org left intact
在我看来,卷曲
phpinfo()
;
我安装了“Update Tester”插件,我得到:
PASS: Your WordPress install can communicate with WordPress.org securely.
PASS: No version control systems were detected.
FAIL: Your installation of WordPress prompts for FTP credentials to perform updates. (Your site is performing updates over FTP due to file ownership. Talk to your hosting company.)
顺便说一句,插件安装/更新在没有FTP信息的情况下运行良好(即我可以通过简单的点击来安装它们,而不必输入我的FTP登录),因此我对自动更新不起作用(以及curl问题)感到有点困惑
非常感谢您的任何建议!