September 17th, 2008
Tutorial : Creating a SVN setup in Windows Vista/XP using Subversion,TortoiseSVN
STEP 2 : Configure Apache
2.A Copy Files to Apache Directory
-
Navigate to C:\server\svn\bin.
Copy mod_authz_svn.so and mod_dav_svn.so to Apache Modules directory. c:\program files\apache group\apache2\modules – usually (C:\server\apache\modules – if you have followed my tutorial in installing Apache) - Now copy the following files shown in the image below to Apache bin directory. c:\program files\apache group\apache2\bin – usually (C:\server\apache\bin – if you have followed my tutorial in installing Apache)
2.B Modify httpd.conf
-
Open up httpd.conf. Search for
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
Remove the commenting character i.e #.
-
After that, add the following lines. We need to activate the modules which we just copied over to the modules folder.
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
-
And Finally, at the end of the file, add the following.
<location /svn> DAV svn SVNListParentPath on SVNParentPath D:\SVN #SVNIndexXSLT "/svnindex.xsl" AuthType Basic AuthName "Subversion repositories" #AuthzSVNAccessFile svnaccessfile </location>
- Location tells where we can access the SVN repository. (For ex: http://myserver.dev/svn will show all the repositories.
- SVNParentPath C:\server\repos -> The directory where we will store all our repositories.
- Save the file, Close and Restart the Apache Server.
-
Now lets navigate and see whether your SVN server is up and running !
http://myserver.dev/svn/You should see a ‘Repositories‘ page, with Powered by Subversion version 1.5.2 at the footer. Voila ! we have created our SVN url.















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.
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
January 20, 2010 at 8:03 pm
what's the "project folder" in step 2?
the repo? the svn? one of their subfolders?
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?
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
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.
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!
October 12, 2009 at 12:58 pm
how do i setup http authentication for subversion
October 12, 2009 at 12:31 pm
How do i setup password for multiple users using apache for subversion
September 22, 2009 at 10:53 pm
Thanks! Great tutorial!
June 17, 2009 at 3:47 pm
Does not work with apache 2.2.0 or I’m doing something incorrect.
Tks btw.
April 21, 2009 at 2:19 pm
@suresh
download svn win 32 1.6.1 version which is compatible
with apache 2.2.11.
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.
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!
April 13, 2009 at 9:55 pm
@James
hey…could anyone tell me how can I disable Windows Defender in order to save resources?
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?
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…
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?
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.
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!
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
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
October 19, 2008 at 10:01 pm
i agreed with author. thanksqz
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
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.
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
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
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.