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

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

<Location /majid>
    AllowOverride None
    Options +Indexes
    DAV On
    AuthUserFile /var/www/users.db
    AuthName Authentication
    AuthType Basic
    <Limit GET PUT DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        Require user majid
    </Limit>
</Location>

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:
Code:
[Tue Oct 11 17:05:12 2011] [error] [client 192.168.1.2] File does not exist: /var/www/dav/majid/New Folder
[Tue Oct 11 17:05:12 2011] [error] [client 192.168.1.2] The locks could not be queried for verification against a possible "If:" header.  [500, #0]
[Tue Oct 11 17:05:12 2011] [error] [client 192.168.1.2] Could not open the lock database.  [500, #400]
[Tue Oct 11 17:05:12 2011] [error] [client 192.168.1.2] (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:
Code:
DAVLockDB /var/www/DAVLock.db
and use the default configuration of Apache:
Code:
<IfModule mod_dav_fs.c>
    # Location of the WebDAV lock database.
    DAVLockDB /var/lib/dav/lockdb
</IfModule>
It is now working perfectly. But I don't know the reason yet.
__________________
Best Regards
MERKAVA
Reply With Quote
  #2  
Old 11th October 2011, 06:19 PM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,790
linuxfedorafirefox
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
Reply

Tags
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: 22:29 (Friday, 01-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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