You are not logged in.
Pages: 1
Topic closed
Hi all,
I have apache (2.2.22-3) running with mod_dav . I have set 'User' and 'Group' to 'apache' in httpd.conf.
Accessing the dav share from remote results in a 500 error and see this in /var/log/httpd/error_log :
[Mon Apr 16 22:16:30 2012] [error] [client 192.168.1.8] (13)Permission denied: Could not open property database. [500, #1]
[Mon Apr 16 22:16:30 2012] [error] [client 192.168.1.8] The locks could not be queried for verification against a possible "If:" header. [500, #0]
[Mon Apr 16 22:16:30 2012] [error] [client 192.168.1.8] Could not open the lock database. [500, #400]
[Mon Apr 16 22:16:30 2012] [error] [client 192.168.1.8] (13)Permission denied: Could not open property database. [500, #1]
At boot /run is recreated, and /etc/rc.d/httpd creates directory /run/httpd with ownership root:root. Then mod_dav (I assume) fails to create DavLock.dir and DavLock.pag in here because permissions don't allow this.
Putting this in /etc/rc.local fixes it:
chown apache:apache /run/httpd
But I wonder if this is a bug. Shouldn't /etc/rc.d/httpd set the ownership to the user set in httpd.conf instead of root:root?
Last edited by rwd (2012-04-16 21:43:54)
Offline
I'm trying to figure this out as well, as it pertains to using `dav` or `WebDav` with the apache server; I suspect the "/run/httpd" directory should be owned by root, just as is the "/etc/httpd" directory--for security purposes. As it stands, judging by the tutorial on ArchWiki regarding the use and installation of WebDAV, the "DavLock" file should/could be housed within a more constrained directory, e.g. `/home/httpd/dav/DAVLock`, though I'm not sure if it NEEDS to be contained within a subdirectory of the "shared" folder, as is portrayed within the ArchWiki article. This issue seems to be mostly, if not only, affecting the usage of WebDAV, not other parts of the apache server; therefore, if it IS a bug, it could be related to the implementation of the httpd-dav module and/or the default "sample" configuration located in the "/etc/httpd/conf" directory.
Offline
Offline
Pages: 1
Topic closed