Purpose of the document:
This article will explain the process of how to configure SVN repository in a windows environment using APACHE web server.
What is SVN? (
Subversion (SVN) is a version control system initiated in 1999 by CollabNet Inc. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).(WIKI link :
" Tortoise SVN or equivalent client
For accessing the SVN repository you will need client software that needs to be installed, Tortoise SVN is one of the client tools for accessing SVN repository. It can be downloaded from
IT IS ADVISABLE TO RESTART YOUR MACHINE AFTER THE INSTALLATION.
Setting up the repository
STEP 1: Creating a repository
On the server, create a directory D:\SourceCodeRepos, this directory will hold the files of our source code repos.
Open Command Prompt and type
svnadmin create D:\SourceCodeRepos
(If you get an error bad command or filename then add the SVN bin path to the environment variables. Go to Desktop à right click MyComputer > Properties > -> Advanced -> Environment Variables > Path > Edit > dont overwrite the existing one> copy the bin path of SVN (generally it is c:\Program Files\Subversion\bin) in the end.)
STEP 2: Configure APACHE to work with SVN
Copy the SVN modules to APACHE
The SVN modules are available inside (C:\Program Files\Subversion\bin), copy these two files (mod_authz_svn.so and mod_dav_svn.so) to c:\Program Files\Apache Software Foundation\Apache2.2\modul
Open C:\Program Files\Apache Software Foundation\Apache2.2\conf\
, and append the following lines to it
#This will load the SVN modules so that APACHE can communicate with SVN Server
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
Add the following line to the end of the same conf file
Step 3: Configure Authentication parameters and SVN Repository link
Create a new directory c:\etc. Create 3 files inside this directory
Name of the file
Content of the file
Now from any other machine (connected to the server), install Tortoise SVN and create a new working folder (eg: D:\Dev), Windows explorer to the folder D:\Dev, right click and select SVN Checkout, specify the URL of your source code control, (eg:
http://servername/SourceCodeRepos) if asked for username and password, please provide the username and password that you have created in the earlier steps. Your SVN Source repository is ready to use.
Now test your environment by adding a new file to the repos and committing the changes. More information on how to create new files / folders is available in the SVN book which is freely downloadable.