View Single Post
  #8  
Old 20th January 2010, 15:41
smartin smartin is offline
Member
 
Join Date: Dec 2007
Posts: 82
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Directories must always be executable, so oyu should try a
Code:
chmod 751 davtest
Falko,

Really sorry but after
Code:
root@mybox:/var/www/clients/client1/web1/web# ls -a -l
total 36
drwxr-xr-x 5 web1     client1 4096 2010-01-14 13:50 .
drwxr-xr-x 6 root     root    4096 2009-06-09 11:38 ..
drw-r----- 2 www-data client1 4096 2010-01-19 09:06 davtest
-rw-r--r-- 1 root     root      22 2010-01-14 14:08 davtest.DAVlogin
drwxr-xr-x 2 web1     client1 4096 2009-06-09 10:48 error
-rwxr-xr-- 1 web1     client1 1406 2009-06-09 10:48 favicon.ico
-rwxr-xr-- 1 web1     client1    0 2009-06-09 10:48 .htaccess
-rwxr-xr-- 1 web1     client1 1861 2009-06-09 10:48 index.html
-rwxr-xr-- 1 web1     client1   34 2009-06-09 10:48 robots.txt
drwxr-xr-x 2 web1     client1 4096 2010-01-15 00:30 stats
lrwxrwxrwx 1 root     root      16 2009-06-09 12:12 webmail -> /var/www/webmail
root@mybox:/var/www/clients/client1/web1/web# chmod 751 davtest
root@mybox:/var/www/clients/client1/web1/web# /etc/init.d/apache2 restart
 * Restarting web server apache2
   ...done.
root@mybox:/var/www/clients/client1/web1/web#
I still get the 403 error above.

Log:
Code:
[Wed Jan 20 13:26:19 2010] [error] [client 192.168.0.6] Directory index forbidden by Options directive: /var/www/www.myothersite.co.uk/web/davtest/
I notice above that the directory davtest is in the group www-data and the davtest.DAVlogin file is in the group root.

I'm guessing this is significant (?) but I get the error here:
Code:
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# chgrp root:www-data /var/www/clients/client1/web1/web/davtest
chgrp: invalid group: `root:www-data'
This is what's in the 'Options' field in the relevant site in ISPc3:
Code:
DAVLockDB /var/lock/apache2/DAVLock
#DAVMinTimeout 600

<Location /var/www/clients/client1/web1/web/davtest>
        Dav On

        AuthType Basic
        AuthName davtest
        AuthUserFile /var/www/clients/client1/web1/web/davtest/.DAVlogin

        <LimitExcept OPTIONS>
                Require user davtest
        </LimitExcept>
</Location>
Should the web address be in there somewhere?

Thanks for your time with this! I'm sure it's a newb mistake I'm making but I have done this many times on a non-ISPc3 server so it's something specific to this server...

S

Last edited by smartin; 20th January 2010 at 15:46.
Reply With Quote