# Joplin with Apache2 WebDav

**URL:** <https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923>\
**Category:** Support\
**Created:** [21 July 2021 18:58 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923 "2021-07-21T18:58:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lightdm](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@lightdm](https://discourse.joplinapp.org/u/lightdm)\
**Post date:** [21 July 2021 18:58 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923/1 "2021-07-21T18:58:16Z")

</div>

Joplin version 2.1.8 (production version, Linux)

Hi

I am trying to install Joplin Desktop on Debian Buster. I have installed Joplin via snap. Joplin Desktop launches without any issue. The problem I have is with my Apache2 WebDav configuration.

I am using the packaged version of the apache2 web server that comes with the Debian 10 installer. I am not installing apache2 manually, although I do need to configure web dav for my apache2 web server.

I currently have web dav cofigured but Joplin cannot sync to the webdav target.

I have a web page configured in my /var/www/joplin, and this web page works.

The packaged version of apache2 with Debian comes with virtual hosts configured. My custom 000-default.conf looks like the following:

NameVirtualHost \*  
\<VirtualHost \*:80\>  
ServerAdmin webmaster@localhost

```
    DocumentRoot /var/www/joplin
    <Directory /var/www/joplin>
            Options Indexes MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>
    
    Alias /webdav /var/www/joplin

    <Location /webdav>
       DAV On
       AuthType Basic
       AuthName "webdav"
       AuthUserFile /var/www/joplin/passwd.dav
       Require valid-user
   </Location>

```

In Joplin, my Synchronization Target is set to WebDav. I have filled the WebDav username and WebDav password with what I believe are the correct credentials. When I click "Check Synchronization Target" I get the following error message:

Error. Please check that URL, username, password, etc. are correct and that the sync target is accessible. The reported error was:

PROPFIND : Unknown error 2 (405): 405 Method Not Allowed

# Method Not Allowed
 

The requested method PROPFIND is not allowed for this URL.

 
* * *
 Apache/2.4.38 (Debian) Server at localhost Port 80 (Code 405)

error.log log file:

[Wed Jul 21 13:38:49.856395 2021] [core:notice] [pid 2455:tid 140224171467904] AH00094: Command line: '/usr/sbin/apache2'  
[Wed Jul 21 13:40:59.393297 2021] [auth\_basic:error] [pid 2457:tid 140224153253632] [client ::1:49892] AH01618: user www-data not found: /webdav/  
[Wed Jul 21 13:41:25.822691 2021] [auth\_basic:error] [pid 2457:tid 140224128075520] [client ::1:49894] AH01618: user user-1 not found: /webdav/  
[Wed Jul 21 13:41:45.698726 2021] [auth\_basic:error] [pid 2457:tid 140223719642880] [client ::1:49900] AH01618: user root not found: /webdav/  
[Wed Jul 21 13:42:00.371338 2021] [auth\_basic:error] [pid 2458:tid 140223904216832] [client ::1:49902] AH01618: user root not found: /webdav/  
[Wed Jul 21 13:48:50.913308 2021] [auth\_basic:error] [pid 2458:tid 140223895824128] [client ::1:49992] AH01618: user root not found: /webdav/  
[Wed Jul 21 13:49:17.892753 2021] [auth\_basic:error] [pid 2457:tid 140223627388672] [client ::1:49996] AH01618: user www-data not found: /webdav/  
[Wed Jul 21 13:58:24.373699 2021] [mpm\_event:notice] [pid 2455:tid 140224171467904] AH00491: caught SIGTERM, shutting down

---

<div class="post-metadata">

**Author:** ![roman\_r\_m](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/roman_r_m/32/3297_2.png) [@roman\_r\_m](https://discourse.joplinapp.org/u/roman_r_m)\
**Post date:** [21 July 2021 19:04 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923/2 "2021-07-21T19:04:20Z")

</div>

I use Apache2's WebDAV with Joplin for various experiments and it syncs fine using this config (keeping only the important lines here):

```auto
<VirtualHost *:8080>
        ServerName ...

        Alias /webdav /var/www/webdav

        <Directory /var/www/webdav>
            DAV On
        </Directory>
</VirtualHost>

```

---

<div class="post-metadata">

**Author:** ![lightdm](https://avatars.discourse-cdn.com/v4/letter/l/898d66/32.png) [@lightdm](https://discourse.joplinapp.org/u/lightdm)\
**Post date:** [22 July 2021 02:24 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923/3 "2021-07-22T02:24:32Z")

</div>

Hasn't worked yet. But I will continue working through it.

Thank you.

---

<div class="post-metadata">

**Author:** ![tessus](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/tessus/32/13_2.png) [@tessus](https://discourse.joplinapp.org/u/tessus)\
**Post date:** [22 July 2021 11:33 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923/4 "2021-07-22T11:33:54Z")

</div>

> [@lightdm](#):
>
> AH01618: user www-data not found:

It seems you have set the user under which Apache runs as `www-data`. However, it looks like the user does not exist on that system.

Your entire Apache config is off. So all your files are world readable?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [21 August 2021 11:34 UTC](https://discourse.joplinapp.org/t/joplin-with-apache2-webdav/18923/5 "2021-08-21T11:34:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
