Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Playing with SVN:


Re: Playing with SVN
Posted by alfadir (141.58.xx.xx) on Mon 20 Mar 2006 at 11:24

Thanks for sharing your experiences. I am also about to go through this, although not for the first time. I intend to do a more complex setup and try to write about it.

I just want to point out a few things.

Instead of editing :
As the book stated I edited httpd.conf as following:

LoadModule dav_module      /usr/lib/apache2/modules/mod_dav.so
LoadModule dav_svn_module /usr/lib/apache2/modules/mod_dav_svn.so

You can under Debian run

a2enmod dav
a2enmod dav_svn

That will set the appropriate links between /etc/apache2/mods-available/ and /etc/apache2/mods-enabled/

I am still a bit undecided how to properly add the subversion location. I have used the conf file in /etc/apache2/mods-availible, but maybe sites-enabled can be used too. (I am thinking for multi-site apache)
Have a look at the file

/etc/apache2/mods-available/dav_svn.conf
for an example. I use the below structure but the mentioned file have more information. (Please observe that the location apache tags were stripped by the blogging software)


  DAV svn
  SVNPath /srv/svn/project

  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav-svn.passwd

  AuthzSVNAccessFile /etc/apache2/dav_svn.authz

  Require valid-user

For access configuration have a look in

/usr/share/doc/libapache2-svn/INSTALL.authz.gz

Lastly the permission should be handled differently. It is not good to set the repository writable by anyone. I can not find the reference right now but on earlier recomendation I have configured my running repository as

chown -R www-data.www-data /srv/svn/project

I am not sure how well that works with other access methods, but I will investigate that in the comming months.

It would be good if you can investigate these things and update the article accordingly so that the article shows as much as possible the Debian way. That is at least what I like about http://www.debian-administration.org/


Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search