XF 1.2Impossible to get WebDAV work in Ubuntu 13.04

account8226

Guest

I just switched to Ubuntu 13.04, and I can't get WebDAV work. I tried Dolphin, Gigolo, to mount via davsf2, and via Nautilus of course, none worked. I get the error message that say this share do not take care of webdav something like that.

I tried to connect to my XenForo 1.1.4 set up then, and same errors : it's not because of XenForo 1.2 (work on none of them).

Any ideas ? Maybe it's not a bug and because of me, but I really tried everything.

XenForo developer

In general, we only provide limited support for setting up the WebDAV system as it requires specific server configuration options and potentially particular programs. The first thing to check is that debug mode is enabled - it won't work with that. Then, you need to check that your server is happy passing on the WebDAV-specific HTTP methods (nginx may not be). Thirdly, you need to make sure that the HTTP auth headers are being sent through to PHP (some PHP configs may not do this by default).

In general, it's tough to debug these unless you can see the full responses in your WebDAV client.

account8226

Guest

In general, we only provide limited support for setting up the WebDAV system as it requires specific server configuration options and potentially particular programs. The first thing to check is that debug mode is enabled - it won't work with that. Then, you need to check that your server is happy passing on the WebDAV-specific HTTP methods (nginx may not be). Thirdly, you need to make sure that the HTTP auth headers are being sent through to PHP (some PHP configs may not do this by default).

In general, it's tough to debug these unless you can see the full responses in your WebDAV client.

On Ubuntu 13 contrary to Ubuntu 12, Nautilus is asking for the authentification after clicking the connect button, so in a second step. Don't you think XenForo needs that everything is sent in the first request (URL, protocol, user and password) ?

XenForo developer

account8226

Guest

So it seems that XF's webDAV's server is not working on Ubuntu 13 using Nautilus' client.

For Ubuntu 12.04 :
I had problems on Ubuntu 12 to get the client work I needed in nautilus to try to connect with the port as a random number -something else than 80, an error will occur, normal ^^-, and then connect to the traditionnal 80 port. Then everything will be ok and your template files will be shown in Nautilus.

Ubuntu 13.04 :
- Nautilus won't work, so I think using davfs2 is the best way to do it.

You must change the uid and gid with your's.
To find a user id in Linux :

Code:

id -u your-username

To find a group id in linux :

Code:

id -g your-username

2) In $HOME/.davfs2/davfs2.conf, un-comment the following settings and change them to :

Code:

use_locks 0
use_expect100 1
if_match_bug 1

(add that to the end if you are not sure ).3) Ok, last thing, gedit is saving a temporary files before saving the main file. You need to disable that.
In gedit -> edit -> settings -> editor -> untick "Create a backup before saving" (I forgot the exact words).

It should be done, so that fix will allow you to use webdav in xenforo on Ubuntu 13, and save files one you have edited them (that was my problem).