我一直试图在我的服务器上托管 ownCloud,但每次我尝试时它都会告诉我这个:
Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.
Please double check the installation guides.
这是我的设置:
Windows Server 2012 R2
IIS 8.5
PHP 5.5.11
ownCloud 6.0.3
MySQL 5.6.17
我尝试用谷歌搜索该错误,但似乎找不到任何有用的信息。
有人说我应该尝试一下这个是否有效: https://cloud.mcsoftworks.net/remote.php/webdav/ 是的,我可以导航到该文件夹并从那里打开文件。
日历可以工作,我也可以从这里上传文件https://cloud.mcsoftworks.net/唯一似乎不起作用的是同步客户端。
同步客户端没有说什么,只是没有连接(截图:http://prntscr.com/3p2apz)
这是错误日志:
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:56:00+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:55:47+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:55:34+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:55:34+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:37+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-02T19:54:36+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:51:24+00:00
这是我的 php.ini:http://pastebin.com/es3MB8Uh
有人知道我该如何让它工作吗?我已经尝试让它工作了大约 14 天,但它开始让我烦恼 =P
更新 :
好的,今天我在我的电脑上安装了最新版本的客户端,这个客户端返回了一个错误,我想其他客户端只是没有显示这个错误,但错误是:
下载 [hostname]/remote.php/webdav/ 时出错 - 服务器回复:方法不允许
日志文件更新:
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:17+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:17+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:16+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:40:15+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:39:28+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:39:24+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:32+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:31+00:00
Fatal webdav Sabre_DAV_Exception_Forbidden: Path does not exist, or escaping from the base path was detected 2014-06-03T13:30:31+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T20:09:05+00:00
Error PHP Undefined index: accessclass at D:\Websites\MCS-oCloud\apps\calendar\lib\object.php#889 2014-06-02T20:02:16+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:56:07+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:56:00+00:00
Warning core isWebDAVWorking: NO - Reason: [CURL] Error while making request: Could not resolve host: cloud.mcsoftworks.net (error code: 6) (Sabre_DAV_Exception) 2014-06-02T19:55:47+00:00
答案1
此错误最可能的原因是您的服务器无法与自身通信。这可能是因为您的路由器没有NAT 反射因此您的服务器无法通过其公共 IP 与自身通信。请尝试在您的文件(或您的内部 DNS,如果有)中添加cloud.mcsoftworks.net
指向,以便服务器知道与自身联系,而不是通过互联网联系。127.0.0.1
hosts
或者,这可能是因为您的服务器不允许 WebDAV HTTP 动词通过 PHP。请参阅OwnCloud 设置指南以获取有关确保正确设置这些设置的说明。
正如在OwnCloud 论坛,OwnCloud 同步客户端也不一定能使用自签名证书。请尝试暂时切换到 HTTP,看看是否可行。(但是,其他人已经使用自签名证书顺利工作,尽管症状相同,但您收到的错误并不表明这是问题所在。)
您可能还遇到了 WebDAV 正常运行但测试失败的问题,从而导致 WebDAV 无法运行。您可以绕过 WebDAV 测试在管理站点中通过添加check_for_working_webdav=false
到config.php
文件。
答案2
好的,我发现了问题所在。在 IIS 8.5 管理器中有一个名为模块的选项卡,如果你打开它,它会显示大量模块,搜索 WebDavModule 并将其删除。
@Moshe_Katz 谢谢您的帮助..它为我指明了正确的方向。