On running a Subversion server

Jurjen Bokma

June 2007

Subversion is the Version Control System of choice for most people in the environment I work in (Computing Science students and systems administrators). A good source of documentation is the Red Bean Book. Subversion is easily installed by apt-get install subversion.

Procedure 48.  Creating a SVN repository
  1. Import the layout of the repository: svn import template/ file:///var/lib/svn/grid -m "initial import"

  1. Add the apache user to the 'svn' group [24] : adduser www-data svn

Procedure 50.  Using the Apache SVN server
Procedure 51.  Enabling ssh access to the Subversion repository

[24] We are assuming here that Apache is already installed

[25] I think membership of this group is only important if it is required by Apache asking for it in a 'require' statement. When a user logs in via the web server, all writing of the repositories is done by the web server. But is it nice anyway in case a user wants to do file-based access instead of via the web server.

[26] I tried to use the svn import command to do the initial fill of the project, but it failed giving a 405 (resource not allowed) error on the PROPFIND request in the Apache logs. The checkout and commit works fine so I won't spend time on it.