Webdav doesn't work

Discussion in 'Installation/Configuration' started by pawan, Jul 14, 2011.

  1. pawan

    pawan Member HowtoForge Supporter

    Cannot display location "dav://mydomain.com/webdav/webdoc"

    HTTP Error: Internal Server Error

    I have checked everything including the latest manual, but couldn't get it to work.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in Apache's error log?
     
  3. pawan

    pawan Member HowtoForge Supporter

    apache logs

    Sorry for the delay.

    apache logs look like this,

    domain.tld::80 192.168.0.1 - - [21/Jul/2011:01:23:24 +0530] "OPTIONS /webdav/doc HTTP/1.1" 500 2149 "-" "gvfs/1.6.1"

    I couldn't make out anything out of it.
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Is that in the access log or the error log?
     
  5. pawan

    pawan Member HowtoForge Supporter

    it is in the access log.
    There is nothing generated in the error-log relating to webdav
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Are you sure? An internal server error should be logged... :confused:
     
  7. pawan

    pawan Member HowtoForge Supporter

    Yes, I have checked the file var/log/apache2/error.log but nothing is being logged in respect to webdav.

    Here is an extract of the error log file after I tried to access the webdav.

    [Fri Jul 22 23:12:58 2011] [notice] mod_fcgid: process /var/www/example.com/web/index.php(11976) exit(lifetime expired), terminated by calling exit(), return code: 0
    [Fri Jul 22 23:29:17 2011] [notice] mod_fcgid: process /var/www/example1.com/web/index.php(14071) exit(idle timeout), terminated by calling exit(), return code: 0
    [Fri Jul 22 23:33:01 2011] [notice] mod_fcgid: call /var/www/example2.co.in/web/index.php with wrapper /var/www/php-fcgi-scripts/web13/.php-fcgi-starter
    [Fri Jul 22 23:33:22 2011] [notice] mod_fcgid: process /var/www/example3.com/web/index.php(14176) exit(idle timeout), terminated by calling exit(), return code: 0
    [Fri Jul 22 23:35:26 2011] [notice] mod_fcgid: process /var/www/example4.in/web/index.php(14171) exit(idle timeout), terminated by calling exit(), return code: 0
    [Fri Jul 22 23:41:57 2011] [notice] mod_fcgid: call /var/www/example5.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web22/.php-fcgi-starter

    what should I do next? I would like to sort it out.
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. pawan

    pawan Member HowtoForge Supporter

    Thank you for your suggestion.

    can you suggest anything else, I can look for for webdav to work.

    I am also getting this error,(instead of internal error) if I try to connect little differently that is if i try only /webdav instead of /webdav/doc

    Cannot display location "dav://example.tld/webdav"
    HTTP Error: Component not found
     
  10. falko

    falko Super Moderator ISPConfig Developer

    Did you enable the DAV modules in Apache?
     
  11. pawan

    pawan Member HowtoForge Supporter

    I think yes.

    [email protected]:~$ a2enmod dav_fs
    Considering dependency dav for dav_fs:
    Module dav already enabled
    Module dav_fs already enabled
    [email protected]:~$

    is that correct?

    I want to add here that I found error in logs in var/logs/ispconfig/httpd/mysite.tld/error.log like this

    [Wed Jul 27 00:11:23 2011] [crit] [client 192.168.0.1] configuration error: couldn't check user. No user file?: /webdav/doc
     
    Last edited: Jul 26, 2011
  12. pawan

    pawan Member HowtoForge Supporter

    Solved

    The digest authorisation was not enabled.

    Running "a2enmod auth_digest" in the terminal solved the problem.

    but I am still facing one problem. when trying to access the webdav folder from windows7:

    I am able to create the network location.
    I am able to paste the files in the network folder.
    I am able to browse the network folder from any browser.

    but strangely I am not able to open/browse the folder in windows explorer.

    Though as a workaround I have downloaded an application "netdrive" which works perfectly and adds the network location as an additional hard-drive letter like h:
     
    Last edited: Jul 28, 2011
  13. pawan

    pawan Member HowtoForge Supporter

    webdav folder permissions

    I am stuck up with some permission problems.

    The ownership of webdav/docs folder shows -

    owner - web13 - create and delete files
    group - client2 - create and delete files

    but if I paste any file in the webdav/docs folder the permission is shown as


    owner - www-data - read and write
    group - www-data - none

    but I upload a file to webdav/docs folder via FTP
    owner - web13 - read and write
    group - client2 - read only

    however in both cases I am getting the error while opening the document from the webDAV folder like this in ubuntu client, but from windows client I am able to edit the file in the second case that file uploaded vide ftp can be opened and edited easily from windows client.

    "General input/output error while accessing /../../.gvfs/WebDAV on example.com/doc1.odt"

    in var/logs/ispconfig/httpd/example.com/error.log

    [Sun Jul 31 00:27:39 2011] [error] [client 192.168.0.1] File does not exist: /var/www/clients/client2/web13/webdav/docs/doc1.odt

    Please help.
     
    Last edited: Jul 30, 2011

Share This Page