Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebDAV
#1
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?
Reply
#2
(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.

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?

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
Reply
#3
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...eaders.php

Bummer Sad

(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.

Uwe

Reply
#4
(03-08-2012, 09:18 AM)EricM Wrote: 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...eaders.php

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
Reply
#5
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.

Uwe

Reply
#6
(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
Reply
#7
Mine says CGI/FastCGI. This actually makes sense now, http://php.net/manual/en/function.apache...eaders.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

Server API Apache 2.0 Handler

right after the line with 'Build Date'. That might be an indication.

Uwe

Reply
#8
(03-08-2012, 09:40 PM)steinm Wrote: Good question. Here phpinfo() says

Server API Apache 2.0 Handler

right after the line with 'Build Date'. That might be an indication.

Uwe


I've added the code here into letodms_webdav.php.
http://www.php.net/manual/en/function.ap....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?
Reply
#9
(03-10-2012, 10:24 AM)EricM Wrote: I've added the code here into letodms_webdav.php.
http://www.php.net/manual/en/function.ap....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?

The should be a log file webdav-... where all the other log files are.

Uwe
Reply


Forum Jump:


Users browsing this thread: