Write this down folks...

I changed
  DAVLockDB "/Library/WebServer/DAVlock"
to
  DAVLockDB "/Library/WebServer/DAVlock/"

And I can now execute the 'put' command

Jerry

PS: Sorry for spamming the list but I was getting desperate.


On Apr 14, 2006, at 10:08 AM, Christian Huldt wrote:


14 apr 2006 kl. 14.16 skrev Jerry LeVan:

Hi,

I decided I want to muck around with webdav on my
Mac 10.4.6 client Apache 1.3x stock install.

I enabled the loading of the mod_dav module in
the httpd.conf and added:


DAVLockDB "/Library/WebServer/DAVlock"

<Directory "/Library/WebServer/Documents/webdav">
  DAV On
  AuthType basic
  AuthName "WEBDAV"
  AuthUserFile /etc/httpd/passwd
  Require valid-user
</Directory>

The lock file has rw perms for www/www

I can authenticate and access the webdav
page and from my linux box do ls and gets
but the PUT operation always fails.

If I do a connect to server locally with
the finder "Connect to server..." any
attempt to drag a file to the webdav
window fails with a bizarre message about
file name possibly too long or invalid characters.

Any PUT operation leaves the following in
error_log

[Thu Apr 13 23:34:46 2006] [notice] Apache/1.3.33 (Darwin) DAV/ 1.0.3 configured -- resuming normal operations [Thu Apr 13 23:34:46 2006] [notice] Accept mutex: flock (Default: flock) [Thu Apr 13 23:37:20 2006] [error] [client 192.168.1.70] The locks could not be queried for verification against a possible "If:" header. [500, #0] [Thu Apr 13 23:37:20 2006] [error] [client 192.168.1.70] Could not open the lock database. [500, #400] [Thu Apr 13 23:37:20 2006] [error] [client 192.168.1.70] (13) Permission denied: I/O error occurred. [500, #1]

Judging from the lack of info "out there" I am either
the first person to try this or the most unlucky...

Has anyone been successful in getting the webdav
stuff to work with the stock apache?

The error messages are usually correct, I got this on a SuSe box a couple of days ago after some update changed DAVLockDB path...

The lock file is actually two files file.pag and file.dir so I would suggest you try

DAVLockDB "/Library/WebServer/Locks/DAVlock"

and

chown www:www /Library/WebServer/Locks

to allow apache to create files as needed


Reply via email to