View Single Post
  #6  
Old 19th January 2010, 10:33
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
Are you sure that the path in <Location /clients/client4/www.mysite.com/web/clients/dav/mike/>
is correct?
Falko,

It seems the path wasn't correct (thanks :-) but I *still* can't get things right...

This is what I just did...

Code:
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# locate davtest
/var/www/clients/client1/web1/web/davtest
/var/www/clients/client1/web1/web/davtest.DAVlogin
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# htpasswd -c /var/www/clients/client1/web1/web/davtest/.Davlogin davtest
New password: 
Re-type new password: 
Adding password for user davtest
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# /etc/init.d/apache2 restart
 * Restarting web server apache2
   ...done.
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'
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# chmod 640 /var/www/clients/client1/web1/web/davtest
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# /etc/init.d/apache2 restart
 * Restarting web server apache2
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
   ...fail!
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# /etc/init.d/apache2 restart
 * Restarting web server apache2
httpd (no pid file) not running
   ...done.
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log# /etc/init.d/apache2 restart
 * Restarting web server apache2
   ...done.
root@mybox:/var/www/clients/client1/www.myothersite.co.uk/log#
I created the directory 'davtest' using my ftp client first, then searched for it... I still get the error:

Code:
ERROR 403 - Forbidden!
The following error occurred:

You are not permitted to access the requested URL.

Please contact the webmaster with any queries.
My error log says:
Code:
[Tue Jan 19 09:14:34 2010] [crit] [client 192.168.0.6] (13)Permission denied: /var/www/www.myothersite.co.uk/web/davtest/.htaccess pcfg_openfile: unable to check htaccess$
These are the permissions:
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
Make any sense?

Thanks for your help as always...

(Why do I get those apache errors on restart btw...? They go away on the third attempt...)

S
Reply With Quote