Archive for the ‘SVN’ Category.

Bundled Apache + SVN

I finally installed Subversion as my local repository. I had used the windows CollabNet server at work it works great, but I decided to try VisualSVN at home. I have to say I like VisualSVN better. With the latest version both of them give you the ability to install Apache during install, but VisualSVN takes the win with their management console. Very easy to use GUI, similar to the Microsoft Sql Server. From the console you can setup up your repositories, users and groups. It is also very convenient to setup group permissions for your repositories.


Note, when you install the Apache server wants to use port 80 or 443 / SSL port. Of course if you have IIS running you will most likely be using those ports for IIS. So either shut down IIS, or figure out which ones gets to use the default port.

Installing on Windows and using the VisualSVN console I had one user and two repositories up in about 5 minutes, very snappy indeed.

Apache http access for SVN Repository

I had to add http access for our SVN repository at work, which was happily serving on the default SVN port. However after changing to our new network the SVN port has been shut down and the IT guys are in no hurry to open it up. I thought I remembered Apache can be chained with SVN for http access, went looking and sure enough. So here is a quick step tutorial with minimum configuration if you need to do the same.

1 – Download and install Apache 2.2
I’m installing at c:\apps\apache2.

2 – Copy modules from Subversion to Apache modules

if needed

3 – Modify the Apache httpd.conf to load the SVN modules
Add the following two lines to your
file, just look for all of the lines that start with LoadModule, put them at the end of the list

LoadModule dav_svn_module modules/
LoadModule authz_svn_module modules/

Now un-comment this line in httpd.conf, it will look like this
LoadModule dav_module modules/

4 – Add your svn location info to httpd.conf
At the very bottom of your httpd.conf file add these lines:

<Location /svn>
DAV svn
SVNParentPath  c:\apps\subversion\svn_repos

AuthType Basic
AuthName "Subversion Repository"
AuthUserFile conf/password.pass
Require valid-user

5 – Create an Apache password file
To allow Apache to handle authentication for you, you’ll need to create a password file. Open a command prompt,
cd c:\apps\apache2\bin
htpasswd –c passwords.pass newuser

Enter the password for newuser, to add additional users

htpasswd passwords.pass anotherUser

When you have added all the users copy the passwords.pass file over to the

6 – Start the Apache service from Services
If you get errors open dos window and run Apache manually
You should see the errors reported.

7 – Access your repository over http
With Tortiese goto the repo browser, enter the appropriate path, something like the following.
You will be prompted for the user and password and should be all good to go. You should also be able to open the location in a web browser.

This quick step guide is based on the more comprehensive guide at inetsolution. That guide is great and covers setup of SVN+Apache, SSL access and group permissions.