Fedora Linux Support Community & Resources Center
Old 11th October 2011, 05:05 PM
merkava Offline
Registered User
Join Date: Jul 2010
Location: Tabriz, Iran
Age: 27
Posts: 77
Could not open the lock database - Apache WebDAV setup

hi guys,
I configured a WebDAV server using Apache. Here is my configuration:
DAVLockDB /var/www/DAVLock.db

<Location /majid>
    AllowOverride None
    Options +Indexes
    DAV On
    AuthUserFile /var/www/users.db
    AuthName Authentication
    AuthType Basic
        Require user majid

Alias /majid /var/www/dav/majid
`/var/www/DAVLock.db` is owned by apache user and group. I can access WebDAV share via browser. I have configured a WebFolder in Windows XP SP3. But I can't create file and folders. `error_log` file says:
[Tue Oct 11 17:05:12 2011] [error] [client] File does not exist: /var/www/dav/majid/New Folder
[Tue Oct 11 17:05:12 2011] [error] [client] The locks could not be queried for verification against a possible "If:" header.  [500, #0]
[Tue Oct 11 17:05:12 2011] [error] [client] Could not open the lock database.  [500, #400]
[Tue Oct 11 17:05:12 2011] [error] [client] (13)Permission denied: Could not open property database.  [500, #1]
Can anyone help? Another question is: Do we need `Options +Indexes` for WebDAV clients to list files and folders or it is only for web access using browser?

---------- Post added at 07:35 PM ---------- Previous post was at 06:09 PM ----------

I removed this line:
DAVLockDB /var/www/DAVLock.db
and use the default configuration of Apache:
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
It is now working perfectly. But I don't know the reason yet.
Best Regards
Reply With Quote
Old 11th October 2011, 06:19 PM
jpollard Offline
Registered User
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 7,346
Re: Could not open the lock database - Apache WebDAV setup

You might have run into a SELinux labeling problem. /var/www has the type httpd_sys_content_t, which is a read-only type. This prevents apache from modifying the files contained within, unless they are marked "httpd_sys_rw_content_t", which is read/write.

/var/lib/dav... has the type "httpd_var_lib_t" which is (I believe) read/write.

This compartmentalization is to prevent any breakins from doing things they really shouldn't.
Reply With Quote

apache, webdav

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebDAV: Is that possible to set owner and group of new files created in WebDAV share? ccy Servers & Networking 0 16th September 2010 03:36 PM
mythtv-setup can not login in to database tyront Using Fedora 0 27th March 2008 11:34 AM

Current GMT-time: 16:31 (Tuesday, 22-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat