Problem with 3rd party software and webdav

remikk

Verified User
Joined
Apr 30, 2008
Messages
165
Location
Poland
On one of the domains I have installed the software, which uses webdav. The software includes a file webdav2.php, which according to the manufacturer should be used during operation. One of the functions of the program is to edit the files (like doc) directly on the server. When I open the file (like doc), in my Apache error logs I have:
client denied by server configuration: / home/edokumenty/public_html/apps/edokumenty/webdav2.php

According to the manufacturer any part of the server configuration can not properly delegate requests to this file webdav2.php, which is responsible for the correct operation of the functions I have described.
I tried to disable the dav module and recompile apache without all of that but unfortunately it did not solve the problem.
Do not really know where else to look for the problem and which way to go. Please help to find solution.
 
I don't have declare webdav in virtualhost

Code:
<VirtualHost 91.227.88.23:80 >
Options -Indexes FollowSymLinks MultiViews

        ServerName www.edokumenty.softgroup.pl
        ServerAlias www.edokumenty.softgroup.pl edokumenty.softgroup.pl
        ServerAdmin [email protected]
        DocumentRoot /home/edokumenty/domains/edokumenty.softgroup.pl/public_html
        ScriptAlias /cgi-bin/ /home/edokumenty/domains/edokumenty.softgroup.pl/public_html/cgi-bin/

        UseCanonicalName OFF

#       SuexecUserGroup edokumenty edokumenty
RMode config
RUidGid edokumenty edokumenty
RGroups apache
        CustomLog /var/log/httpd/domains/edokumenty.softgroup.pl.bytes bytes
        CustomLog /var/log/httpd/domains/edokumenty.softgroup.pl.log combined
        ErrorLog /var/log/httpd/domains/edokumenty.softgroup.pl.error.log

        <Directory /home/edokumenty/domains/edokumenty.softgroup.pl/public_html>
                Options +Includes -Indexes

                php_admin_flag engine ON
                <IfModule !mod_php6.c>
                        php_admin_flag safe_mode OFF
                </IfModule>
                php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'


                php_admin_value open_basedir /home/edokumenty/:/tmp:/var/tmp:/usr/local/lib/php/


        </Directory>



</VirtualHost>
 
Actually i dont see any reference to webdav in this file... this should be the cause, i suppose webdave should be declare in virtual_hsot, well, it depend on software instruction but for sure those instruction should be helpful to us on helping you...
 
I have declare alias in httpd-alias.conf

Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php
which is from documentation.
 
I have declare alias in httpd-alias.conf

Alias /vdisk /home/edokumenty/public_html/apps/edokumenty/webdav2.php
which is from documentation.

And what is output?

Code:
stat /home/edokumenty/public_html/apps/edokumenty/webdav2.php

Try a full path

Code:
Alias /vdisk /home/edokumenty/domains/edokumenty.softgroup.pl/public_html/apps/edokumenty/webdav2.php
 
Code:
stat /home/edokumenty/public_html/apps/edokumenty/webdav2.php
  File: `/home/edokumenty/public_html/apps/edokumenty/webdav2.php'
  Size: 19808           Blocks: 40         IO Block: 4096   zwykły plik
Device: 6801h/26625d    Inode: 8079602     Links: 1
Access: (0777/-rwxrwxrwx)  Uid: ( 1006/edokumenty)   Gid: ( 1008/edokumenty)
Access: 2011-11-07 10:30:20.000000000 +0100
Modify: 2011-11-02 15:59:19.000000000 +0100
Change: 2011-11-07 10:30:03.000000000 +0100
I put perrmission to this file 777. But before was rwxrxrx. I tried find solutions before I post here.
SeLLeRoNe yes. Owner is correctly. By this software I put the file and then edit.

Full path doesn't help.

Documentation says that only what I need to use, I have to put alias and install webdav_client (http://edokumenty.softgroup.pl/apps/edokumenty/share/externals/webdav/WebDAV_Client_v1.0.9_setup.exe)
 
Last edited:
I see

Code:
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>
Sabre_DAV_Exception_NotAuthenticated
</s:exception>
<s:message>
No digest authentication headers were found
</s:message>
<s:sabredav-version>
1.3.0
</s:sabredav-version>
</d:error>

on http://edokumenty.softgroup.pl/vdisk

Make sure you've got a valid username and password.
 
After I choose file to edit, MS Word open and ask me about login and password. If I put wrong I can't open file. Then file is open but is only for read (not for write).
 
Last edited:
Contact with the software developers, I know nothing about the software you use there.
 
Yes, I know.
But software developer said me that it something in server configuration which block webdav2.php. So I try to find help here. Thanks.
 
Look at this file /etc/httpd/conf/extra/httpd-dav.conf it might be useful. For now I'm out of ideas. If you want me to find the problem and fix it, I need root access to your server via SSH, and of course it will cost you some money. PM me for a quote, if you're interested.
 
Back
Top