![]() |
Newb: Is this WebDav setup going to work?
Hi,
I have an ISPc3 setup working well and I'm petrified of breaking anything so just wanted someone to sanity-check the following... I really have no idea what I'm doing. I notice there is a lot of interest in webdav as related to ISP3 so perhaps this can become a howto in the end... I'm assuming the following: I'm running ISP3 on Ubuntu 8.04 LTS server. My site is called 'www.mysite.com'. It's already created using ISPc3. I want to create a dav folder for the client 'Mike' within my website. Does the following make sense...? Become root: Code:
sudo suCode:
a2enmodCode:
/etc/init.d/apache2 force-reloadCode:
mkdir /var/www/clients/client4/www.mysite.com/web/clients/dav/mikeCode:
chgrp root:www-data /var/www/clients/client4/www.mysite.com/web/clients/dav/mikeCreate the htpasswd file and add the user 'mike'. The -c flag creates the file if it doesn't already exist. *Only* use it the first time. You will be asked for the password you wish 'mike' to use. Code:
htpasswd -c /var/www/clients/client4/www.mysite.com/web/clients/dav/mike/.DAVlogin mikeI go to the 'Sites' tab Click on 'www.mysite.com' Go to 'Options' In the 'Apache Directives' field I paste in: Code:
DAVLockDB /tmp/DAVLockRestart apache Code:
/etc/init.d/apache2 restartIs this going to work? Is there a more elegant way, especially given that I will need to create further password protected Dav folders for other users? Thanks guys! :-) S |
Hi,
Sadly have to report that this *will not* work... Things that are tripping me up: I thought the command to add a directory to several groups (root and www.data in this case) was Code:
chgrp root:www.data directorynamechgrp: invalid group: `root:www-data' I have given the dav folder permissions of 640 775 and 777 but nothing works. When I try to access the folder through a browser I get 'Access forbidden' My log is saying: [Thu Jan 14 12:43:42 2010] [error] [client 192.168.0.6] Directory index forbidden by Options directive: /var/www/www.mytestsite.co.uk/web/davtest/ Does anyone have any ideas to get me past this? I'd really appreciate it :-) S |
|
Quote:
I was hoping you'd show up... ;-) That must be a typo in my post here. Sorry. The error message from Terminal had it correct as www-data not www.data so I must have got it right in my command originally. Any other ideas as to why things aren't working? The message from my error log makes me think the issue is in the code I pasted into the options field in ISPc3...? I just don't know enough to spot the issue. Code:
DAVLockDB /tmp/DAVLockS |
Are you sure that the path in <Location /clients/client4/www.mysite.com/web/clients/dav/mike/>
is correct? |
Quote:
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 davtestCode:
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$Code:
root@mybox:/var/www/clients/client1/web1/web# ls -a -lThanks for your help as always... (Why do I get those apache errors on restart btw...? They go away on the third attempt...) S |
Directories must always be executable, so oyu should try a
Code:
chmod 751 davtest |
Quote:
Really sorry but after Code:
root@mybox:/var/www/clients/client1/web1/web# ls -a -lLog: 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'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/davtestCode:
DAVLockDB /var/lock/apache2/DAVLockThanks 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 |
Quote:
Code:
chown root:www-data /var/www/clients/client1/web1/web/davtest |
Quote:
I'm so sorry but I get the same error as before. I did restart apache with "/etc/init.d/apache2 restart". Do I need another command? The log says: Code:
[Thu Jan 21 14:36:58 2010] [error] [client 192.168.0.6] Directory index forbidden by Options directive: /var/www/www.myothersite.co.uk/web/davtest/S |
| All times are GMT +2. The time now is 14:59. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.