Click to find out more about our Work
September 17th, 2008

Tutorial : Creating a SVN setup in Windows Vista/XP using Subversion,TortoiseSVN

31 Comments

SVN LOGOWhat is SVN ? Why is it required ? You might be wondering. While developing applications for the web or any other area, most of us would be trying and testing the code on our local machines, sometimes it happens, while in the flow of coding, we tend to do some drastic changes to the sourcecode (atleast I do) only to find out that the application is not executing anymore after that. It becomes difficult to backtrack and eventually, we end up wasting a lot of time and energy, this is where SVN comes to our rescue.

Definition according to Wikipedia :
Subversion (SVN) is a version control system initiated in 2000 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).

Index :


Now, The Pre-Requisites :

  1. Apache Webserver and Localhost configuration set up. To know how to setup the webserver for local use, read Tutorial : Installing Apache, PHP 5, MySQL 5 & PhpMyAdmin 2.11 in Windows Vista/XP
  2. Subversion : Subversion is an open source version control system. We will be needing this package for the Win32 binaries for Apache 2.2.9 or higher to get a SVN setup up and running on your localhost. We can do version control using this package alone, but it is completely command line based.

    Click Here to goto Download Page.
    Please download the Subversion Win32 binaries for Apache 2.2.x (2.2.9 or higher is required within the 2.2.x series)

    For a direct link -> svn-win32-1.5.2.zip
    The latest release of Subversion is 1.5.2.

  3. TortoiseSVN : TortoiseSVN is a really easy to use Revision control / version control / source control software for Windows. It is based on Subversion, and has all the features of Subversion. It is GUI based, making our lives simpler.

    Click Here to goto Download Page.
    The latest release of TortoiseSVN is 1.5.3.

Introduction

I have given a jist of what SVN is, we can use SVN to keep track of web-pages, documents, source code and their versions. If we want to retrieve the previous version, we can always retrieve using SVN, Subversion was recognized as the sole leader in the Standalone Software Configuration Management (SCM) category and a strong performer in the Software Configuration and Change Management (SCCM) category.

There are 2 ways on how you can set up a SVN server on your system i.e use Subversion’s own server or integrate it with Apache. I am going to show you, how to integrate it with Apache. Once the SVN server is setup, we can use TortoiseSVN to perform all the operations, since it gets integrated into the windows shell.

Pages : 1 2 3 4

31 Responses to “Tutorial : Creating a SVN setup in Windows Vista/XP using Subversion,TortoiseSVN”

  1. MaxRegistryCleaner
    July 1, 2010 at 9:09 pm

    I've been having problems with Tortoise on Vista and I wonder if you have managed to solve these? First of all, I have very slow repository access. Is there a way to speed that up? And second, I can't get special columns to show. Any suggestions for that one? Cheers.

  2. jay
    January 20, 2010 at 8:16 pm

    what's the "project folder" in step 2 on the last page? the repo? the svn? one of their subfolders?

    ack! and what is "the checkout directory" in step3 on the last page too?!

    everything went smoothly, now i'm guessing

    thanks though, i'll google it to finish it

  3. jay
    January 20, 2010 at 8:03 pm

    what's the "project folder" in step 2?

    the repo? the svn? one of their subfolders?

  4. daniel
    January 12, 2010 at 4:23 pm

    Hi, nice tutorial, thanks.

    Firstly, I installed apache 2.2 & php as per your tutorial on this – so http://myserver.dev/ – works as expected.

    I'm having issues with the svn installation though.

    On page 3 of this tutorial one of the files which you say to copy to the apache bin folder is libhttpd.dll …..
    this file doesn't seem to exist in the svn zip archive.

    In step 4 (of page 3) when I browse to http://myserver.dev/svn I get a http 404 error Oops! This link appears to be broken.

    Do you know what is going wrong?

    • P M Reddy
      August 3, 2010 at 7:03 am

      You can try after creating the repository in it. And one more, you can create a svnaccess.conf file. You can simply edit your svnaccess.conf file to get access to the repository

  5. Developer
    October 24, 2009 at 9:49 pm

    Great tutorial
    about this problem
    Could not open the requested SVN filesystem

    download new subversion this will solve the problem

  6. antic
    October 17, 2009 at 1:40 am

    Every time I add a a repository to my “c:\server\repo” folder and I try to navigate to it using a url I get the error

    Could not open the requested SVN filesystem

    I also get an error every time i try to “checkout” the repository.
    thanks. :-D

    • antic
      October 19, 2009 at 11:09 pm

      I figured out the error. Make sure that the versions of subversion and tortisesvn are the same(i.e. 1.5 and 1.5) because if they are not they will not work together.
      Great Tutorial though!! Thanks!

  7. Tintu
    October 12, 2009 at 12:58 pm

    how do i setup http authentication for subversion

  8. Tintu
    October 12, 2009 at 12:31 pm

    How do i setup password for multiple users using apache for subversion

  9. [tokenizer]
    September 22, 2009 at 10:53 pm

    Thanks! Great tutorial! :D

  10. André
    June 17, 2009 at 3:47 pm

    Does not work with apache 2.2.0 or I’m doing something incorrect.

    Tks btw.

  11. bob
    April 21, 2009 at 2:19 pm

    @suresh
    download svn win 32 1.6.1 version which is compatible
    with apache 2.2.11.

  12. suresh
    April 21, 2009 at 1:20 pm

    Your tutorial is great…but I got a small error in the
    final step
    This is my Httpd.conf file

    DAV svn
    SVNListParentPath on
    SVNParentPath C:\server\repos
    #SVNIndexXSLT “/svnindex.xsl”
    AuthType Basic
    AuthName “Subversion repositories”
    #AuthzSVNAccessFile svnaccessfile

    “Could not open the requested SVN filesystem”

    Do you have any idea about it.

  13. marc
    April 16, 2009 at 4:51 pm

    I just set this up in 5 minutes flat! great tutorial! I also followed your previous tutorial on setting up apache and mysql on vista. worked very well. i never had a problem with any of it and its all working perfectly. thanks man, good job!

  14. Christina
    April 13, 2009 at 9:55 pm

    @James
    hey…could anyone tell me how can I disable Windows Defender in order to save resources?

  15. Aaron Boushley
    March 30, 2009 at 11:48 pm

    Hey Guys…

    Great tutorial, got me further through this process than
    any of the other tutorials I had read. But I’m still
    stuck.

    I followed through the tutorial, and when I go to
    http://localhost/svn/ I see the list of my repositories,
    and the powered by svn… that works great. But then
    when I click on the repository it gives me the error

    Could not open the requested SVN filesystem

    And my apache error logs say

    Expected FS format between ’1′ and ’3′; found format
    ’4′

    Any ideas?

  16. Pheonix
    March 7, 2009 at 9:49 pm

    @Jonathan Montgomery

    I tried playing around with that part of it, cant figure out what is wrong though…

  17. Jonathan Montgomery
    March 2, 2009 at 6:11 am

    There appears to be an error in the rendering of some code:

    [sourcecode]
    DAV svn
    SVNListParentPath on
    SVNParentPath C:\server\repos
    AuthType Basic
    AuthName “Repositories”
    [/sourcecode]

    Shouldn’t this code be surrounded in tags?

  18. Sean
    November 3, 2008 at 10:12 pm

    @Aaron and others
    libhttpd.dll is actually from the bin dir of the apache install, I suspect the author highlighted it by accident _after_ copying the required libraries to it.

    Good Luck.

  19. Aaron
    October 30, 2008 at 5:49 am

    Hey Michael,

    The article is great first off. I’ve been through so many different tutorials, this one by far is the most simplest haha. However, I’m having the same problem zack had. I’ve downloaded all packages from tigiris that deal with Apache 2.2.9+. These include 1.5.2, 1.5.3, and 1.5.4. Not a single one of these packages contains the “libhttpd.dll”… I’ve been through hours trying to setup this up.

    I’m Running:
    Windows Server 2008
    Apache 2.2.10
    Subversion 1.5.4
    TortoiseSVN

    If you can contact me by email (it’s not published…) that would be great.

    Thanks in advance!

  20. Michael
    October 22, 2008 at 10:21 am

    hey zack,

    thats odd, subversion package has all the files I have mentioned above. I assume you must have downloaded the wrong package ?

    If you can temme which package you downloaded I may be able to help.

    Try to perform the tutorial as it is without the file and lemme know the results

    regards

  21. zack
    October 21, 2008 at 2:44 am

    Hi, so I’m looking at part 2.A “Copy Files to Apache Directory”. The list includes “libhttpd.dll” – maybe I’m being daft, but this file isnt in C:/server/svn/bin.
    I checked everywhere and even downloaded a fresh copy of Subversion – still no libhttpd.dll … any thoughts?

    cheers

  22. masahira
    October 19, 2008 at 10:01 pm

    i agreed with author. thanksqz

  23. Michael
    October 17, 2008 at 10:38 pm

    Hey Greg,

    This tutorial tells you how to set up a SVN setup only in your local computer.
    You can`t access the repos externally.

    If you want to host your code online, you can use services of github.com. They provide 100Mb and unlimited repos inside it. Its pretty easy to use as well.

    Regards

  24. Greg
    October 17, 2008 at 9:30 am

    This is all working good and fine, but how would I access this externally? I need to be able to sync with the repo from campus, work, and home.

  25. Michael
    September 30, 2008 at 8:13 am

    Hey Simon,

    First of thanks for posting in, secondly, this tutorial is more like a follow up after my previous tutorial i.e Tutorial : Installing Apache, PHP 5, MySQL 5 & PhpMyAdmin 2.11 in Windows Vista/XP

    It`ll be much easier to configure your SVN server, if you have followed the above tutorial to install Apache in Windows.

    Regards

  26. Simon
    September 29, 2008 at 11:27 pm

    Hi, I’ve followed this part of the tutorial (Tutorial : Creating a SVN setup in Windows Vista/XP using Subversion,TortoiseSVN) to the letter but am not having much luck getting the SVN server running, or at least serving up my repositories.

    Basically, when everything is configured, Apache restarts successfully without complaining. When i then try to connect to the SVN server say to; http://127.0.0.1/svn, (http://127.0.0.1 returns default index page ok), i get a 404 error and an error.log message;


    File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/svn

    Apache’s DocumentRoot is set to – C:/Program Files/Apache Software Foundation/Apache2.2/htdocs – so is simply relative to this path, or at least that’s how Apache is interpreting things.

    Any ideas on what the problem is would be much appreciated. Spent a day going round in circles already.

    Thanks, Simon

  27. James
    September 21, 2008 at 2:48 am

    Hi, I found your blog on this new directory of WordPress Blogs at blackhatbootcamp.com/listofwordpressblogs. I dont know how your blog came up, must have been a typo, i duno. Anyways, I just clicked it and here I am. Your blog looks good. Have a nice day. James.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code lang=""> <del datetime=""> <em> <i> <p> <q cite=""> <strike> <strong>