Install Subversion with Web Access on Ubuntu 8.04 (Hardy Heron)

well, it is very useful to have a subversion server so u can have different versions of your applications; for back up and to be able to restore old versions, and be able to share the project with the team, when there is more than one developer working on it.

1- install apache

sudo apt-get install apache2

2- install subversion

sudo apt-get install subversion libapache2-svn

3- We’re going to create the subversion repository in /svn

sudo svnadmin create /svn

4- Now we’ll need to edit the configuration file for the subversion webdav module

sudo gedit /etc/apache2/mods-enabled/dav_svn.conf

we will comment the following line, so we can access the repository using the address

and the following line to enable the dav module

DAV svn

and the following line to set the path to our repository which is /svn in our case

SVNPath /svn

and the following 3 lines to enable basic authentication

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd

5- We create a user to have access to our repository

sudo htpasswd -cm /etc/apache2/dav_svn.passwd

where is the desired login name
6- We restart the apache server

sudo /etc/init.d/apache2 restart

7- You can access now the repository using the address :

Leave a Reply

6 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
3 Comment authors
VenadminHazem Khaled Recent comment authors
Notify of
Hazem Khaled

pashs 😉

how can i install it on ubuntu with out install apache ?
i have xampp


Hazem Khaled

after install libapache2-svn i can`t get dav_svn.conf file

where is it in my xampp


Well, no matter if I am using http://localhost/svn or my ip address instead of localhost, all I get is:

You don’t have permission to access /svn on this server.

OS: Ununtu 8.04

I’ve tried to switch the owner of my repo from root to the user I am using to login, but no success, too.

Any ideas?


My problem is fixed.

I wanted to use “SVNParentPath” instead of “SVNPath” in order to be able to use multiple repositories.

Well, in this case, when you try to access the repos, you can not load the main location at http://localhost/svn

Rather, you need to append the target repository name, for example: