HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Newb: Can't get WebDav working (http://www.howtoforge.com/forums/showthread.php?t=62498)

smartin 10th July 2013 15:58

Newb: Can't get WebDav working
 
Hi,

I'm hoping this is something simple...

I'm using ISPC 3.0.5.2
Ubuntu server 8.06 LTS (?)

Apache modules dav and dav_fs are enabled

My domain is xcvb.com (example)

I set up a webdav user called nwilldav, which actually becomes xcvbnwilldav.
I set the path to nwill

When I use the OSX finder (10.6.8) I: Go > Connect to server
Server address: http://www.xcvb.com/webdav/nwill

I get the error:
<Connection Failed
There was an error connecting to the server www.xcvb.com. Check the server name or IP address and try again>

The site itself is working fine so it's not a DNS issue.

If I use a WebDav client (Transmit) with the following settings entered:
Server: www.xcvb.com
Username: xcvbnwilldav
Password:
Initial path: <Blank>
Port: 80
Protocol: WebDAV

I get: Cannot connect to www.xcvb.com

If I set the "Initial path" to webdav/nwill
I get a 403 error.

What am I doing wrong?

Hope someone can help :-)

Thanks!

S

MaddinXx 10th July 2013 18:42

Check the website's/global apache error log to see if it contains useful information.

Depending on your mod_security rules (if used) this may block it. There are already 2/3 rules whitelisted...but you may need to add more.

tail -f /var/www/<website.tld>/log/error.log while trying and see what shows up.

smartin 10th July 2013 19:35

Quote:

Originally Posted by MaddinXx (Post 299642)
Check the website's/global apache error log to see if it contains useful information.

Depending on your mod_security rules (if used) this may block it. There are already 2/3 rules whitelisted...but you may need to add more.

tail -f /var/www/<website.tld>/log/error.log while trying and see what shows up.

MaddinXx,

Thanks for your time...

Not 100% sure I'm looking in the right places but...
Site error log:
[Wed Jul 10 13:46:15 2013] [error] [client 192.168.0.6] (13)Permission denied: access to /webdav/nwill denied
[Wed Jul 10 13:47:10 2013] [error] [client 192.168.0.6] (13)Permission denied: access to /webdav/nwill denied
[Wed Jul 10 13:51:23 2013] [error] [client 192.168.0.6] (13)Permission denied: access to /webdav/nwill/ denied
[Wed Jul 10 15:55:02 2013] [error] [client xxx] (13)Permission denied: access to /webdav/nwill denied
[Wed Jul 10 15:55:46 2013] [error] [client xxx] (13)Permission denied: access to /webdav/nwill denied
[Wed Jul 10 16:52:44 2013] [error] [client 192.168.0.6] (13)Permission denied: access to /webdav/nwill denied
[Wed Jul 10 16:52:53 2013] [error] [client 192.168.0.6] (13)Permission denied: access to /webdav/nwill denied

Main apache error log:
[Wed Jul 10 13:03:11 2013] [notice] mod_fcgid: call /var/www/ispconfig/sites/webdav_user_edit.php with wrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter
[Wed Jul 10 13:10:33 2013] [notice] mod_fcgid: call /var/www/ispconfig/nav.php with wrapper /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter

Main access log:
127.0.0.1 - - [10/Jul/2013:16:25:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:16:30:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:16:35:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:16:40:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:16:45:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
210.42.88.221 - - [10/Jul/2013:16:49:16 +0100] "HEAD / HTTP/1.0" 200 - "-" "-"
127.0.0.1 - - [10/Jul/2013:16:50:02 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:16:55:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:00:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:05:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:10:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:15:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:20:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"
127.0.0.1 - - [10/Jul/2013:17:25:01 +0100] "GET / HTTP/1.1" 200 45 "-" "Mozilla/5.0 (ISPConfig monitor)"

The tail command didn't show me any live information...

Any help?

S

MaddinXx 10th July 2013 19:55

Have you activated auth_digest apache module?

a2enmod auth_digest && service apache2 restart

Otherwise I don't know what could be wrong and you'll have to wait for someone else to help you.

Please double check your credentials as well (as there doesn't seem to be no error - and simply login fails).

Also, check that the apache vhost for this domain includes a part for WebDAV:

<IfModule mod_dav_fs.c>
// here's more...
</IfModule>

smartin 11th July 2013 10:53

Quote:

Originally Posted by MaddinXx (Post 299649)
Have you activated auth_digest apache module?

a2enmod auth_digest && service apache2 restart

Otherwise I don't know what could be wrong and you'll have to wait for someone else to help you.

Please double check your credentials as well (as there doesn't seem to be no error - and simply login fails).

Also, check that the apache vhost for this domain includes a part for WebDAV:

<IfModule mod_dav_fs.c>
// here's more...
</IfModule>

MaddinXx,

auth_digest was enabled...

When I look at /etc/apache2/sites-enabled/xcvb.com.vhost, there's nothing in there at all. Am I looking in the right place? Is there a global vhost...?

Thanks again :-)

S

MaddinXx 12th July 2013 00:02

Quote:

Originally Posted by smartin (Post 299669)
When I look at /etc/apache2/sites-enabled/xcvb.com.vhost, there's nothing in there at all. Am I looking in the right place? Is there a global vhost...?

But the website works? You meant no WebDav section or no content at all? :D

Please update the website's setting (e.g. switch SSI on and off) to see if it recreates that file. Make sure to tail -f /var/log/ispconfig/cron.log in the meanwhile to check for errors that might encounter...as ISPConfig seems to have problems on your server creating the vhost files.

smartin 12th July 2013 12:07

Quote:

Originally Posted by MaddinXx (Post 299694)
But the website works? You meant no WebDav section or no content at all? :D

Please update the website's setting (e.g. switch SSI on and off) to see if it recreates that file. Make sure to tail -f /var/log/ispconfig/cron.log in the meanwhile to check for errors that might encounter...as ISPConfig seems to have problems on your server creating the vhost files.

MaddiXx,

The vhosts file had no content whatever.

The site does work but it's just a static html site so may be very forgiving...?

This is what I got from your command as I switched SSI on and off:
[Fri Jul 12 10:00:12 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Jul 12 10:00:22 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
PHP Warning: symlink(): File exists in /usr/local/ispconfig/server/plugins-available/webmail_symlink_plugin.inc.php on line 114
[Fri Jul 12 10:00:25 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
[Fri Jul 12 10:00:35 2013] [warn] NameVirtualHost *:80 has no VirtualHosts
PHP Warning: symlink(): File exists in /usr/local/ispconfig/server/plugins-available/webmail_symlink_plugin.inc.php on line 114

Still nothing in the vhosts file...

Make any sense...? :-)

S


All times are GMT +2. The time now is 11:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.