You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tom Hancock <th...@opwfms.com> on 2003/10/10 16:31:08 UTC
[users@httpd] mod_dav cannot upload or lock files
Hi folks!
I am trying to set up Apache with mod_dav. I'm doing this for testing purposes and as a demo. I'll worry about security later.
The platform is Mandrake 9.1. The apache packages installed are:
apache2-common-2.0.44-11mdk
apache2-modules-2.0.44-11mdk
apache2-mod_php-2.0.44_4.3.1-2mdk
apache-conf-2.0.44-11mdk
apache2-2.0.44-11mdk
apache2-mod_suexec-2.0.44-2mdk
apache2-mod_ssl-2.0.44-11mdk
apache2-mod_perl-2.0.44_1.99_08-3mdk
apache2-mod_dav-2.0.44-11mdk
The relavent section of httpd2.conf:
DavLockDB /var/log/httpd/dav/lockdb
<Directory /var/www/html/dav>
Dav On
AuthType Basic
AuthName DAV
AuthUserFile /etc/httpd/conf/passwd
</Directory>
The relavent section of error log:
[Thu Oct 09 16:44:03 2003] [notice] Apache-AdvancedExtranetServer/2.0.44 (Mandrake Linux/11mdk) mod_perl/1.99_08 Perl/v5.8.0 DAV/2 mod_ssl/2.0.44 OpenSSL/0.9.7a PHP/4.3.1 configured -- resuming normal operations
[Thu Oct 09 16:45:11 2003] [error] [client 10.0.0.96] The locks could not be queried for verification against a possible "If:" header. [500, #0]
[Thu Oct 09 16:45:11 2003] [error] [client 10.0.0.96] Could not open the lock database. [500, #400]
[Thu Oct 09 16:45:11 2003] [error] [client 10.0.0.96] (13)Permission denied: Could not open property database. [500, #1]
Symptoms:
I can connect using the DAV Explorer tool (http://www.ics.uci.edu/~webdav/). I can download files using this tool, but cannot either lock files or upload files. MS Explorer cannot establish a connection. Any files I manually place into the repository are visible in this tool, and can be downloaded.
What I have tried:
I googled around for answers and found that most people who have a problem with this have a problem with the DavLockDB directive. Most of these problems were solved by either correcting the DavLockDB (it names a file, not a directory) or correcting file permissions so Apache can write to the directory and file. In the above example "/var/log/httpd/dav/lockdb" the "../dav" is a directory. The file permissions:
drwxr-x--- 2 apache apache 4096 Oct 8 13:47 dav/
I have tried everything to make sure the file permissions and the DavLockDB are correct. I even tried this:
DavLockDB /tmp/lockdb
But nothing works. There is no difference in the results.
What am I missing?
Thanks for your consideration.
Tom Hancock
---
"Everybody is somebody else's weirdo." -- Dykstra
Thomas M. Hancock, P.E.
Software Group Manager
OPW Fuel Management Systems
thancock@opwfms.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org