Could not open the lock database - Apache WebDAV setupWebDAV on CentOS - getting 403 error when attempt to uploadApache2 quietly breaking, won't make apache2.pidApache server keeps crashing regularlyActive Directory problems while trying to perfom compare operationCannot start redmine on ubuntu 10.4Apache2 on Ubuntu 11.04 - New Virtual Host 403 Forbidden ErrorApache httpd with LDAP error in CentOSMount WebDAV as drive in Windows 8Problems configuring SVN with Apache on Ubuntu - 500 Error on commitApache 500 Internal Server Error when authenticating with authz_svn_module with an empty user name field
Is there an application which does HTTP PUT?
Publishing an article in a journal without a related degree
Why did Missandei say this?
Was the Highlands Ranch shooting the 115th mass shooting in the US in 2019
Lorentz invariance of Maxwell's equations in matter
A Latin text with dependency tree
Can I use a 11-23 11-speed shimano cassette with the RD-R8000 11-speed Ultegra Shadow Rear Derailleur (short cage)?
Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1
What's an appropriate age to involve kids in life changing decisions?
What is a good way to allow only one non null field in an object
How do I minimise waste on a flight?
Double underlining a result in a system of equations with calculation steps on the right side
Do Rabbis admit emotional involvement in their rulings?
Why did they wait for Quill to arrive?
How did Captain Marvel know where to find these characters?
Are double contractions formal? Eg: "couldn't've" for "could not have"
I might have messed up in the 'Future Work' section of my thesis
Locked my sa user out
Do Monks gain the 9th level Unarmored Movement benefit when wearing armor or using a shield?
How to handle DM constantly stealing everything from sleeping characters?
Pre-1993 comic in which Wolverine's claws were turned to rubber?
How long can fsck take on a 30 TB volume?
Identity of a supposed anonymous referee revealed through "Description" of the report
How do carbureted and fuel injected engines compare in high altitude?
Could not open the lock database - Apache WebDAV setup
WebDAV on CentOS - getting 403 error when attempt to uploadApache2 quietly breaking, won't make apache2.pidApache server keeps crashing regularlyActive Directory problems while trying to perfom compare operationCannot start redmine on ubuntu 10.4Apache2 on Ubuntu 11.04 - New Virtual Host 403 Forbidden ErrorApache httpd with LDAP error in CentOSMount WebDAV as drive in Windows 8Problems configuring SVN with Apache on Ubuntu - 500 Error on commitApache 500 Internal Server Error when authenticating with authz_svn_module with an empty user name field
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
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
<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:
[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?
apache-2.2 webdav
add a comment |
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
<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:
[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?
apache-2.2 webdav
ls -ld /var/www/
?
– quanta
Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03
add a comment |
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
<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:
[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?
apache-2.2 webdav
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
<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:
[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?
apache-2.2 webdav
apache-2.2 webdav
asked Oct 11 '11 at 13:48
Majid AzimiMajid Azimi
33711026
33711026
ls -ld /var/www/
?
– quanta
Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03
add a comment |
ls -ld /var/www/
?
– quanta
Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03
ls -ld /var/www/
?– quanta
Oct 11 '11 at 16:08
ls -ld /var/www/
?– quanta
Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03
add a comment |
4 Answers
4
active
oldest
votes
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
chown -R apache:apache /var/www/
, undo your change and try again.
add a comment |
This was a gotcha for me, but according to the documentation for mod_dav:
"The directory containing the lock database file must be writable by the User and Group under which Apache is running."
You have to make sure you have proper permissions on both the DAV lock DB file and the directory containing it.
In my fresh installation, the /var/www/ directory did not have write permissions set for the apache group. The /var/lib/dav/ directory has these permissions set by default, which is why it worked for Majid. Knowing this, you make a directory somewhere of your choosing with the proper permissions.
(Old question, but it still came up in my search. I'm not a fan of configuration voodo, so for me it helps to know why Majid Azimi's config change worked for him.)
add a comment |
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
</IfModule>
It is now working perfectly. But I don't know the reason yet.
add a comment |
We also receiving same issues in Apache WebDav with CentOS 7 to fix this after changing the configuration we did
chcon -R -t httpd_sys_content_rw_t /var/www/webdav root folder
After this it works perfectly
Reference:
https://sirion-notes.blogspot.com/2015/09/centos-7-apache-24-webdav-not-so-secure.html
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f320480%2fcould-not-open-the-lock-database-apache-webdav-setup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
chown -R apache:apache /var/www/
, undo your change and try again.
add a comment |
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
chown -R apache:apache /var/www/
, undo your change and try again.
add a comment |
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
chown -R apache:apache /var/www/
, undo your change and try again.
ls -ld /var/www/
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
chown -R apache:apache /var/www/
, undo your change and try again.
answered Oct 11 '11 at 17:15
quantaquanta
43.5k15114196
43.5k15114196
add a comment |
add a comment |
This was a gotcha for me, but according to the documentation for mod_dav:
"The directory containing the lock database file must be writable by the User and Group under which Apache is running."
You have to make sure you have proper permissions on both the DAV lock DB file and the directory containing it.
In my fresh installation, the /var/www/ directory did not have write permissions set for the apache group. The /var/lib/dav/ directory has these permissions set by default, which is why it worked for Majid. Knowing this, you make a directory somewhere of your choosing with the proper permissions.
(Old question, but it still came up in my search. I'm not a fan of configuration voodo, so for me it helps to know why Majid Azimi's config change worked for him.)
add a comment |
This was a gotcha for me, but according to the documentation for mod_dav:
"The directory containing the lock database file must be writable by the User and Group under which Apache is running."
You have to make sure you have proper permissions on both the DAV lock DB file and the directory containing it.
In my fresh installation, the /var/www/ directory did not have write permissions set for the apache group. The /var/lib/dav/ directory has these permissions set by default, which is why it worked for Majid. Knowing this, you make a directory somewhere of your choosing with the proper permissions.
(Old question, but it still came up in my search. I'm not a fan of configuration voodo, so for me it helps to know why Majid Azimi's config change worked for him.)
add a comment |
This was a gotcha for me, but according to the documentation for mod_dav:
"The directory containing the lock database file must be writable by the User and Group under which Apache is running."
You have to make sure you have proper permissions on both the DAV lock DB file and the directory containing it.
In my fresh installation, the /var/www/ directory did not have write permissions set for the apache group. The /var/lib/dav/ directory has these permissions set by default, which is why it worked for Majid. Knowing this, you make a directory somewhere of your choosing with the proper permissions.
(Old question, but it still came up in my search. I'm not a fan of configuration voodo, so for me it helps to know why Majid Azimi's config change worked for him.)
This was a gotcha for me, but according to the documentation for mod_dav:
"The directory containing the lock database file must be writable by the User and Group under which Apache is running."
You have to make sure you have proper permissions on both the DAV lock DB file and the directory containing it.
In my fresh installation, the /var/www/ directory did not have write permissions set for the apache group. The /var/lib/dav/ directory has these permissions set by default, which is why it worked for Majid. Knowing this, you make a directory somewhere of your choosing with the proper permissions.
(Old question, but it still came up in my search. I'm not a fan of configuration voodo, so for me it helps to know why Majid Azimi's config change worked for him.)
answered Aug 25 '15 at 23:36
guestpersonageguestpersonage
211
211
add a comment |
add a comment |
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
</IfModule>
It is now working perfectly. But I don't know the reason yet.
add a comment |
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
</IfModule>
It is now working perfectly. But I don't know the reason yet.
add a comment |
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
</IfModule>
It is now working perfectly. But I don't know the reason yet.
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
</IfModule>
It is now working perfectly. But I don't know the reason yet.
answered Oct 11 '11 at 16:03
Majid AzimiMajid Azimi
33711026
33711026
add a comment |
add a comment |
We also receiving same issues in Apache WebDav with CentOS 7 to fix this after changing the configuration we did
chcon -R -t httpd_sys_content_rw_t /var/www/webdav root folder
After this it works perfectly
Reference:
https://sirion-notes.blogspot.com/2015/09/centos-7-apache-24-webdav-not-so-secure.html
add a comment |
We also receiving same issues in Apache WebDav with CentOS 7 to fix this after changing the configuration we did
chcon -R -t httpd_sys_content_rw_t /var/www/webdav root folder
After this it works perfectly
Reference:
https://sirion-notes.blogspot.com/2015/09/centos-7-apache-24-webdav-not-so-secure.html
add a comment |
We also receiving same issues in Apache WebDav with CentOS 7 to fix this after changing the configuration we did
chcon -R -t httpd_sys_content_rw_t /var/www/webdav root folder
After this it works perfectly
Reference:
https://sirion-notes.blogspot.com/2015/09/centos-7-apache-24-webdav-not-so-secure.html
We also receiving same issues in Apache WebDav with CentOS 7 to fix this after changing the configuration we did
chcon -R -t httpd_sys_content_rw_t /var/www/webdav root folder
After this it works perfectly
Reference:
https://sirion-notes.blogspot.com/2015/09/centos-7-apache-24-webdav-not-so-secure.html
answered Apr 30 at 5:46
Vishnu BhatvadekarVishnu Bhatvadekar
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f320480%2fcould-not-open-the-lock-database-apache-webdav-setup%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
ls -ld /var/www/
?– quanta
Oct 11 '11 at 16:08
drwxr-xr-x. 9 root root 4096 Oct 11 15:54 /var/www/
– Majid Azimi
Oct 11 '11 at 17:03