Setup
sudo apt-get install subversion
Web-Dav apache module is contained in the libapache2-svn
sudo apt-get install libapache2-svn
To check if Web-Dav is enabled run the 2 following commands
sudo a2enmod dav sudo a2enmod dav_svn
Before creating repositories users and a group must be defined to have access to create or it will not work
so we add the group subversion and the user www-data which is what apache uses
sudo mkdir /var/svn-repos sudo addgroup --gid 3001 subversion sudo chown -R www-data:subversion /var/svn-repos/ sudo chmod -R 750 /var/svn-repos/
Now add yourself to the group
sudo usermod -a -G subversion rfongyee
Creating Repositories
First go to or create the directory you want to create the repositories in for this example we've created the svn-reps directory in /var/
The svnadmin allows you to create svn repositories and allows you to perform several maintenance operations on the repositories
Prior to Subversion 1.2, the default was to use Berkeley DB; the default is now FSFS. You can explicitly choose the filesystem type using the --fs-type argument, which accepts as a parameter either fsfs or bdb.
svnadmin create --fs-type fsfs /var/svn-repos/hamsters
References
http://svnbook.red-bean.com/en/1.4/svn.intro.whatis.html
http://www.howtoforge.com/debian_subversion_websvn - Debian instructions more straight forward
http://confluence.atlassian.com/display/CROWD/Integrating+Crowd+with+Subversion - Integrating with Crowd