Setting up a Subversion Server on OS X Leopard

OS X 10.5 Leopard includes a complete Subversion and Apache 2 installation. However, Apache is not configured to provide access to a subversion repository using the WebDAV/DeltaV protocol. This can be achieved with a few simple steps:

  1. Setup the SVN Repository
  2. Modify Apache’s httpd.conf
  3. Create httpd-svn.conf
  4. Configure Authentication

Setup the SVN RepositoryTo setup the SVN repository, open the Terminal application and launch the command

svnadmin create <PATH_TO_REPO> 

Modify Apache’s httpd.confOn OS X, the Apache configuration file httpd.conf is located in


This file is only writeble for the root user. Therefore you have to edit it using

sudo vi /etc/apache2/httpd.conf 

Add the following line in the section containing the LoadModule directives

LoadModule dav_svn_module libexec/apache2/ 

Following the conventions of the OS X Apache installation you should add the following lines close to the end of the httpd.conf file:

Include /private/etc/apache2/extra/httpd-svn.conf 

That tells Apache to read the subversion configuration from the file located at    /private/etc/apache2/extra/httpd-svn.confSave the modified file and exit vi. Create httpd-svn.confAgain fire up vi creating a new file with

sudo vi /etc/apache2/extra/httpd-svn.conf 

and add the following lines

<Location /repo> DAV svn SVNPath <PATH_TO_REPO></Location>


Now you can access the repository using the URL http://localhost/repo



3 Responses to Setting up a Subversion Server on OS X Leopard

  1. […] (Of course, you’d need to configure the server. But there are good instructions here and […]

  2. […] verder gezocht… Wellicht dat volgende bron kan helpen: (nu niet verder bekeken en/of […]

Kommentar verfassen

Bitte logge dich mit einer dieser Methoden ein, um deinen Kommentar zu veröffentlichen:

Du kommentierst mit Deinem Abmelden /  Ändern )

Google Foto

Du kommentierst mit Deinem Google-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden /  Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden /  Ändern )

Verbinde mit %s

%d Bloggern gefällt das: