Subversion is an open-source revision control system. It is used to maintain current and historical versions of files such as source code, web pages, and documentation. You can read the description from Wikipedia page.
How to install Subversion on Apache and Windows platform
1. Install Apache or LAMP package. I won’t tell you much about this, assuming that you already know about Apache or LAMP.
2. Download Windows binaries from Subversion site. Choose a version suitable with your Apache. You can download the latest version (current version is 1.5), but also download a previous version (1.4.6). Why do I need two version? I had installed Subversion 1.5 before I got a problem with Apache. Apparently, apache modules in Subversion 1.5 is not compatible with Apache 2.2 (I’m using Apache 2.2). You won’t need Subversion 1.4.6 when Apache is version 2.2.9 or higher
I choose to download .zip package file
3. Extract Subversion 1.5 zip package file , move the Subversion to a directory your choice (C:\Program Files)
4. Extract Subversion 1.4.6 zip package file to a temporary directory, DO NOT move Subversion 1.4.6 into Subversion 1.5 folder. Browse through Subversion 1.4.6 directory and find the files /bin/mod_dav_svn.so and mod_authz_svn.so. Copy these files to the Apache modules directory (usually C:\Program Files\Apache Group\Apache2\modules). You shall delete Subversion 1.4.6 after installation.
5. Copy the file /bin/libdb*.dll and /bin/intl3_svn.dll from Subversion 1.5 directory to the Apache bin directory
6. Open and Edit Apache’s configuration file ( C:\Program Files\Apache Group\Apache2\conf\httpd.conf) with a text editor such as Notepad and make following changes:
find Apache’s module section,
Uncomment (remove the ‘#’ mark) the following lines:
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_module modules/mod_dav.so
Add the following two lines to the end of the LoadModule section.
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
7. You will need to create passwd file for Apache before someone access your Subversion. Open MS-DOS command (cmd) from Start Menu > Accessories > Command Prompt or Start Menu > Run > cmd. Change to the apache2 folder (usually C:\Program Files\Apache Group\Apache2) and create a file with this command :
bin\htpasswd -c passwd
8. You shall add Subversion 1.5 directory to Windows Enviroment Variable before you run Subversion command from MS-DOS command. Open System Properties in Control Panel, Go To Advanced Tab, Go To Enviroment Variable, Find PATH inside System Variables, choose Edit Button, add full path of Subversion directory into the list.
9. Don’t close/exit from MS-DOS command yet. Create Subversion Repo directory, run this :
svnadmin create [full path of a directory where you put SVN repositories in Apache-usually home or www/name of directory] e.g
svnadmin create C:\Program Files\Apache Group\Apache\www\svn
10. Back to Apache’s httpd.conf file.
Add below command to the end of config file :
DAV svn
SVNListParentPath on
SVNParentPath "full path of a directory where you put SVN repositories in Apache-usually home or www"
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile passwd
Require valid-user
Save httpd.conf.
Related posts:





Hi! I really like your blog.
I am also fiddling with subversion. I have it running, using “file://” URLs to access the repositories. I wanted to be able to use “http://” link-style too, but httpd.conf has been a pain in the ass, lol.
I kept getting ’301 the repository has been moved permanently’. But no worries, I have it in to do list and will mess with it when my hands got itchy. lol.
Anyway, great work, love your simple WordPress theme.