WebDAV issues

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Hello guys,

Me and adam worked (6-7 months ago) on getting webdav working on my website but we couldn't get it to work so thought i will post it here so if anyone else has any ideas.

Issue 1: WebDAV works only on cpanel. i tried a couple different control panels such as virtualmin, centos web panel, zpanel, etc and it does NOT work on these panels.
When i try to connect via webDAV on non-cpanel environments i get this error message in the logs
===========================================================

2016-08-28 16:38:54 - Hit WebDav plugin receiver: /plugins/webdav/site/control/index.php

2016-08-28 16:38:54 - Username and password not found, if you're using Plesk try commenting out the code within \plugins\webdav\site\control\.htaccess.

===========================================================

2016-08-28 16:38:56 - Hit WebDav plugin receiver: /plugins/webdav/site/control/index.php

2016-08-28 16:38:56 - Successful WebDav login for user 'sukhman'.

===========================================================
Issue 2: I got the webDAV on cpanel working fine and when i upload a file and then copy the download URL, it gives me http://www.website.com/filename.zip, it does not give the correct file name, it should be http://www.website.com/rr/filename.zip or http://www.website.com/rr/ depending on your settings, so i cant seem to find any setting where the webDAV client gives proper URL.

Can anyone help or have any clue?
Is anyone here able to get webDAV working on non-cpanel server ? if so, what control panel are you using?

Thanks so much.
 

adam

Administrator
Staff member
Dec 5, 2009
2,043
108
63
Hi,

It might be worth revisiting the following kb post, it's had a few additions recently:

https://support.mfscripts.com/public/kb_view/49/

Regards,
Adam.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Thanks for your reply adam, so i did make some changes as per your knowledge article and now i am getting this different error message


There is nothing in the logs anymore and if you notice, in the image attached, on the footer of webDAV client, it shows "Login Successful" but i get an error "Not a valid DAV response" and there is nothing that got logged, not even in the server error logs, its just in access logs (but it doesn't help)...
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
update on this:
Now i am using Plesk control panel and installed the test file upload site with webdav plugin.

I get a different error in the logs now:
Error 404 HEAD /app/index.php/ HTTP/1.0 Cyberduck/5.1.0.20872 (Windows 7/6.1) (x86) Apache SSL access
Error 405 PROPFIND /app/index.php/ HTTP/1.0 Cyberduck/5.1.0.20872 (Windows 7/6.1) (x86) Apache SSL access
on webDAV client, i get this:


Anyone has any idea on how to fix this error ?
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
webdav never worked for me both on plesk and cpanel, even with the new version.

whoever has it working should do everyone a favor and tell us what they're running exactly.

A point to note, it's not that there's anything wrong with the webdav plugin but rather non-cooperative/interfering software

I don't think there's necessarily a 1-fix fits all solution for this, but from my perspective I have no issues resetting up a server from scratch in a way that would make this plugin work. on another website that I run I use xfilesharing, not because i like the script, because I don't, yetishare is vastly superior, but my users reqd app access. if i could get the webdav plugin to work then i'd definitely buy a 2nd yetishare license and transition the other website to it as well.
 

chienb

New Member
YetiShare User
Jun 3, 2016
15
0
0
it's working fine for me but i'm on centos7 nginx. however, i'm also getting the plesk error code in my server log but it doesn't seem to be affecting anything. so far...
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Are you running a specific control panel on it? cpanel, virtualmin, etc or just basic LAMP install?
I tried it on centos 6.8 with plesk, cpanel and virtualmin but neither worked for me.

chienb said:
it's working fine for me but i'm on centos7 nginx. however, i'm also getting the plesk error code in my server log but it doesn't seem to be affecting anything. so far...
 

chienb

New Member
YetiShare User
Jun 3, 2016
15
0
0
no control panel, however streaming videos > 1GB via webnav is not working. not sure if it's the mobile APP or issue with the script...
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Thanks @chienb. i will build a test server with similar setup and give it a try. i'll let you know if i have the same streaming issues or not (if my webDAV works) .. thanks again
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
i just tested webdav on hostgator cpanel shared hosting and it works fine. So seems like webDAV needs certain php / apache modules or files, etc that allows it to work. i will test on LAMP centos 7 server and update in this thread.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
i just installed a simple lemp setup, no control panels, and webdav still wont work

i noticed this from the knowledgebase post


Your server may be blocking the http methods required by WebDav. Run a test on SSH for check it:

curl -v -X PROPFIND http://yourdomain.com

If you get:

405 Not Allowed

They are being blocked. Required methods DELETE|PROPFIND|PUT|GET|HEAD|POST|OPTIONS|REPORT

and it's true for me, when i try the cmd from above i do get a 405 error, i dont have modsecurity installed, i do have csf however i temporarily disabled it and still no joy, any recommendations?

im running centos 7.2, and all nginx rules are fine for sure

currently when i try to connect with cyberduck i get:

Listing directory index.php failed
Not a valid DAV response (200 OK). Please contact............

and what's strange is, if i switch the plugin settings to https, even though my sites not https and switch to https on cyberduck it'll connect, ask for a password then error out with: Interoperability failure.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
well im a certified idiot, i had site maintenance turned on,

new issue though, after anything uploads it doesnt go anywhere, its as it its been uploaded to another planet and the url from cyberduck is like this: http://somewebsite.co/app/index.php/uploaded-file.doc

hopefully this is an easy fix
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
interestingly i can create folders through cyber duck,

this is from the webdav plugin log

===========================================================
2016-12-05 17:09:14 - Successful WebDav login for user 'testing'.
===========================================================
2016-12-05 17:09:24 - Curl request to: http://domain.com/core/page/ajax/api_upload_handler.ajax.php
2016-12-05 17:09:24 - Curl params: Array
(
[folderId] => 1
[api_key] => 12e7fbe365ffc1b853f9b9b80494c101
[username] => testing
[action] => upload
[files] => @/tmp/ff94286150559d67e2d0b1f63ce7a2dcBLI1ux;filename=test.doc
)

2016-12-05 17:09:24 - *** ERROR *** Error on: http://domain.co/core/page/ajax/api_upload_handler.ajax.php. acceptFileTypes
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
See here is the thing, i gave up on this plugin. no matter i try https or http, with or without www, This is what i am getting

It says login successful but then i get this message.
Listing directory index.php failed
Not a valid DAV response (200 OK).

I triple checked all my settings and no luck, i did check my site maintenance is turned off. I honestly think its the plugin causing issues. I tried different webDAV and i just get "connection closed" message on that one.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
i respectfully disagree sukhman21, i know what you mean though, i've given up in the past on this plugin as well, but after much much experimentation i believe its not the plugin that's the issue.

webdav generally has so many issues associated with it and thats evident all over the web, many people are experiencing strange issues and theyre not using yetishare.

this is what i have working:

-login
-create/rename folders
-download files and move files around on server

not working: upload files

what im running:

-no control panel, just straight lemp
-centos 7

i think im going to put in a ticket, hopefully Adam can help
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
i am glad its working for you buddy. during my test in the past, it worked fine on my test hostgator account (cpanel), even the uploading worked. Just had no luck on my dedicated servers.

For apache, are you compiling it with your selected modules or just installing using yum ?
Do you have the following modules in your apache: (check it by running "httpd -M" on terminal.)

dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)

I am thinking if this is the issue but just want to make sure if your apache is running these or not.
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
I'm not running apache at all, worst case scenario i may go back to it as i miss the ease of the htaccess process. I'm running nginx with the dav module configured and compiled in as Adam recommended.

I wanted to try nginx both as a learning process and at the same time thats what Adam recommends, also I wanted to use some of the more advanced and cool features like pagespeed and also avoid apaches worker mpm and all that non-sense. My last website, after putting in so much time and effort to customise everything that I wanted, for some reason apache refused to handle more than 10 concurrent connections at any given time and would serve the 11th+ person series 500 errors. For a vps with 50Gb ram and 10 cpu cores that was beyond unacceptable for me, because at that rate scaling further would cost me millions.

I was literally sitting on another vps and not doing anything with it thats why I figured I'd try to get to the bottom of this and find a way to make it work. Plus I'm on vacation for a month and being a nerd thats what I do.

I've wrote down different scenarios/setups I can put together and see what will make this work. I wont be doing anything with cpanel as I dont think its worth the money anymore and canceled my license and plesk is garbage. I had my plesk root account hacked on another vps last year, somehow the person got in and disabled the 2-factor auth, which i have no idea how anyone could have done that without at least the password to ssh, and I never shared my password with anyone, so i blamed that on the nsa and moved on with my life.

Hopefully I'll find a solution soon and I'll post a guide here on what I installed and any special confs if I'm successful.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
hey i would pay for that guide for all the time you have spent on this. If there is one setup that would work a whole lot better than my current setup plus webDAV works, i would be the first one to buy that guide off of you (provided it is affordable cost haha)
Thanks man, keep us posted please.
If you need any resources to test out stuff, let me know, i have a dedicated server sitting doing nothing
 

paypal1352

New Member
YetiShare User
Wurlie User
Mar 2, 2012
297
2
0
Thanks Sukhman, no payment will be necessary, I'd be glad to contribute to our community.

I've also involved my vps provider to see if this is something that their systems may be automatically blocking, as I can't comprehend why I can do everything but upload, although technically it does upload, it just doesnt go into the users account and I have no idea where the file went.

I hope Adam eventually hires a desktop app dev, as that would be an awesome "plugin" that we can buy, i'd pay top dollar for that for sure.
 

sukhman21

Member
YetiShare User
YetiShare Supporter
Jan 26, 2015
508
3
18
Well, i guess if we had an API developed for the script, it would have been a lot easy to get a desktop or mobile phone app developed for it.
I have most of the API working except for the upload functionality. I have API for user details, move files, list files in users account, remote upload, just no API for file upload. I guess i am going to have to find time to finish developing this API and then work on desktop app ?