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;








7















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?










share|improve this question






















  • 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

















7















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?










share|improve this question






















  • 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













7












7








7


2






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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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










4 Answers
4






active

oldest

votes


















5














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.






share|improve this answer






























    2














    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.)






    share|improve this answer






























      1














      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.






      share|improve this answer






























        0














        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






        share|improve this answer























          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
          );



          );













          draft saved

          draft discarded


















          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









          5














          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.






          share|improve this answer



























            5














            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.






            share|improve this answer

























              5












              5








              5







              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.






              share|improve this answer













              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.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Oct 11 '11 at 17:15









              quantaquanta

              43.5k15114196




              43.5k15114196























                  2














                  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.)






                  share|improve this answer



























                    2














                    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.)






                    share|improve this answer

























                      2












                      2








                      2







                      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.)






                      share|improve this answer













                      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.)







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 25 '15 at 23:36









                      guestpersonageguestpersonage

                      211




                      211





















                          1














                          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.






                          share|improve this answer



























                            1














                            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.






                            share|improve this answer

























                              1












                              1








                              1







                              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.






                              share|improve this answer













                              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.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Oct 11 '11 at 16:03









                              Majid AzimiMajid Azimi

                              33711026




                              33711026





















                                  0














                                  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






                                  share|improve this answer



























                                    0














                                    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






                                    share|improve this answer

























                                      0












                                      0








                                      0







                                      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






                                      share|improve this answer













                                      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







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Apr 30 at 5:46









                                      Vishnu BhatvadekarVishnu Bhatvadekar

                                      1




                                      1



























                                          draft saved

                                          draft discarded
















































                                          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.




                                          draft saved


                                          draft discarded














                                          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





















































                                          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







                                          Popular posts from this blog

                                          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                                          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                                          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company