Subversion on Ubuntu 7.10

I set about setting up a svn repository on the server and my god was it hard. Let me clarify what I was trying to do.

I want a svn repository on the server so that it was accessible online. Idealy it would use the SVN + WebDav module so it could be accessible using a web browser. Also I wanted an alternative access point either using the SVN protocol.

I dug around on the internet for some articles and installing SVN was easy using the apt-get method.
sudo apt-get install subversion subversion-tools libapache2-svn

Then I create a new user group called subversion and added my account and the www-data (apache) to the group. The group will be used to set permissions for the svn directory / repository

Create the
chmod -R www-data:subversion mySVNdir

Now it’s time to configure the WevDav config file. This is located at:
/etc/apache2/mods-enabled/dav_svn.conf

Inside the configuration file make sure it has all of these directives:


DAV svn
SVNPath /home/svn/myproject
AuthType Basic
AuthName "myproject subversion repository"
AuthUserFile /etc/subversion/passwd

Require valid-user



The “Require valid-user” is optional and requires the user to enter a username and password authentication before allowing the user to access the repository.

Restart the apache server

sudo /etc/init.d/apache2 restart

Next is to create a username and password to access the svn repository:
sudo htpasswd -c /etc/subversion/passwd danny
replace “danny” with the username. The shell should ask you to create a password and confirm it. Now it should be up and running but I seem to have a problem saying “Could not open the requested SVN filesystem” when I go to it via http. I’m sure the file permissions are o.k because the chown and chmod it after I created my repository.

It connects using svn+ssh:// using the username and password I created with htpasswd.

Useful Resources

  • Ubuntu Document on Subversion
  • Subversion with Web Access on Ubuntu
  • Subversion plugin with Eclipse
  • About Danny

    I.T software professional always studying and applying the knowledge gained and one way of doing this is to blog. Danny also has participates in a part time project called Energy@Home [http://code.google.com/p/energyathome/] for monitoring energy usage on a premise. Dedicated to I.T since studying pure Information Technology since the age of 16, Danny Tsang working in the field that he has aimed for since leaving school. View all posts by Danny → This entry was posted in Linux. Bookmark the permalink.

    Leave a Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.