Installing Subversion on Windows

My requirements are to host the repository on a windows machine, mostly for access from the LAN but also to be accessible over the Internet. The server is running Vista but the install and set up process should be similar on other versions of windows.

Currently there are two relevant builds of Subversion, one based on apache 2.0 and one based on 2.2. I am going to install Apache 2.2 and the corresponding Subversion build.

Install the Apache HTTP server.

Download and run the latest subversion build (currently svn-1.4.6-setup.exe) from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=91

Copy the file mod_dav_svn.so from C:\Program Files\Subversion\bin to C:\Program Files\Apache Software Foundation\Apache2.2\modules.

Open the Apache configuration file (‘Start > All Programs > Apache HTTP Server 2.2 > Configure Apache Server > Edit the Apache httpd.conf Configuration File’) and find the line ‘#LoadModule dav_module modules/mod_dav.so’.

Remove the ‘#’ from the front of that line then add the line ‘LoadModule dav_svn_module modules/mod_dav_svn.so’ below it. Save the file and restart the service to confirm everything is working as it should.

Create the directory where you want to store the repositories (e.g. D:\Svn).

Go back to the Apache configuration file and at the end of the file add:

<Location /Svn>
    DAV svn
    SVNListParentPath on
    SVNParentPath D:\Svn
</Location>

Save the changes then restart the Apache service for them to take effect.

You should now be able to browse to http://localhost:81/Svn/ and see a page with zero repositories.

Previous
Previous

Simple WCF Service Host

Next
Next

Installing Apache HTTP Server on Windows