![]() |
WebDAV - Printable Version +- LetoDMS Community Forum (https://community.letodms.com) +-- Forum: LetoDMS Support (https://community.letodms.com/forumdisplay.php?fid=4) +--- Forum: Installation Problems (https://community.letodms.com/forumdisplay.php?fid=9) +--- Thread: WebDAV (/showthread.php?tid=456) |
WebDAV - EricM - 03-06-2012 I am trying to get WebDAV working from Windows host to linux Leto installation. The HTTP/WebDAV PHP package installed. To mount a windows drive to a WebDAV server, here is what I do: 1. Right click on 'my computer' 2. Select 'Map Network Drive' 3. For the Folder, type in 'http://<host/path_to_leto>' 4. Select 'Finish' Then, a message box appears asking for a username and password. I enter my Leto username and password, but it is not accepted. I am using Apache protected directories and I am beginning to suspect that this might be involved. Before I try to debug this further, can someone explain how Leto WebDAV is supposed to work? RE: WebDAV - steinm - 03-07-2012 (03-06-2012, 10:42 PM)EricM Wrote: I am trying to get WebDAV working from Windows host to linux Leto installation. The HTTP/WebDAV PHP package installed. Your steps above are the way to go, just make sure to use the webdav folder in your url not just the letodms folder. webdav itself has user/pw protection, so your apache authentication may well be in the way. A good start to debug is cadaver, which I don't know whether it is available for win32. Uwe RE: WebDAV - EricM - 03-08-2012 Well, I removed the Apache protected directory, and tried cadaver. When accessing http://<server>/letodms/webdav, I get "500 Internal Server Error", and the file webdav/error_log has the message: [08-Mar-2012 02:42:47 UTC] PHP Fatal error: Call to undefined function apache_request_headers() in /home/<user>/public_html/letodms/webdav/letodms_webdav.php on line 57 Looks like PHP doesn't support this API until 5.4, and I'm unfortunately running 5.3.10: http://php.net/manual/en/function.apache-request-headers.php Bummer ![]() (03-07-2012, 01:13 PM)steinm Wrote: Your steps above are the way to go, just make sure to use the webdav folder in your url not just the letodms folder. webdav itself has user/pw protection, so your apache authentication may well be in the way. A good start to debug is cadaver, which I don't know whether it is available for win32. RE: WebDAV - steinm - 03-08-2012 (03-08-2012, 09:18 AM)EricM Wrote: Well, I removed the Apache protected directory, and tried cadaver. No, it can't be the php version. I'm running 5.3.10 as well. Are you using the php apache module? apache_request_headers() requires to run php as an apache module. Uwe RE: WebDAV - EricM - 03-08-2012 I'm not sure how to tell since it's a shared host server. Would that be displayed in phpinfo()? (03-08-2012, 06:16 PM)steinm Wrote: No, it can't be the php version. I'm running 5.3.10 as well. Are you using the php apache module? apache_request_headers() requires to run php as an apache module. RE: WebDAV - steinm - 03-08-2012 (03-08-2012, 07:47 PM)EricM Wrote: I'm not sure how to tell since it's a shared host server. Would that be displayed in phpinfo()? Good question. Here phpinfo() says Server API Apache 2.0 Handler right after the line with 'Build Date'. That might be an indication. Uwe RE: WebDAV - EricM - 03-08-2012 Mine says CGI/FastCGI. This actually makes sense now, http://php.net/manual/en/function.apache-request-headers.php says Quote:Version 5.4.0: [apache_request_headers] became available under FastCGI. Previously, it was supported only when PHP was installed as an Apache module. I have 5.3.10 with FastCGI, therefore not suported. (03-08-2012, 09:40 PM)steinm Wrote: Good question. Here phpinfo() says RE: WebDAV - EricM - 03-10-2012 (03-08-2012, 09:40 PM)steinm Wrote: Good question. Here phpinfo() says I've added the code here into letodms_webdav.php. http://www.php.net/manual/en/function.apache-request-headers.php#70810 Now with cadaver, I open http://<server>/letodms/webdav and receive "501 Method Not Implemented" The file webdav/error_log has no new messages in it. Maybe there is some other logging capability? RE: WebDAV - steinm - 03-11-2012 (03-10-2012, 10:24 AM)EricM Wrote: I've added the code here into letodms_webdav.php. The should be a log file webdav-... where all the other log files are. Uwe |