Installing SVN Server with XAMPP(Apache) on Windows

SVN is the most crucial tool for collaborative development. Many of us like to use for opensource project or for SVN but there is a problem if your project is not open source and you might want to setup your own svn server. I am here just showing how simply you can setup a SVN server with XAMPP. Well i am saying about XAMPP just because this is the most popular package(Filezilla, MySql, Apache, Mercury) for php development. If you have a xampp installed (if not go here, download and install) in you machine then follow the steps below:

step1: get a SVN server from here.  This SVN server bundled with an Apache server. Skip that as you already have a Apache server installed in your pc with xampp. Before starting installation it will ask for a repository path, give it a path. (like c:\svn_repository).

step2: just after completing the installation open the command prompt and create your first repository by typing this command

svnadmin create c:\svn_repository\my_repository

Ok you are done!.

step3: Ok now you have to configure the Apache to use SVN. Apache to work with SVN it require two module those are and; Unfortunately, those two modules don’t work with the apache that shiped with xampp. you can download a working module from here. and replace them in your apache modules folder (you will find it somewhere like c:\xampp\apache\modules).

step4: open your httpd.conf and find these two line like,

#LoadModule dav_svn_module modules/
#LoadModule authz_svn_module modules/

replace those two lines with these lines below

LoadModule dav_svn_module modules/
LoadModule authz_svn_module modules/
<location /svn_repository/my_repository>
 DAV svn
 SVNPath c:/svn_repository/my_repository

Save and exit. You are done.

step5: Restart your apache server. If you don’t know how to do it, then just restart your pc.

To ensure your svn server is working you can do it by typing in your command prompt

svn checkout svn://localhost/my_repository


You can checkout in your web-browser by browsing this url http://localhost/my_repository

Okay that’s it for today. Enjoy coding with your team and Have fun.

6 thoughts on “Installing SVN Server with XAMPP(Apache) on Windows

  1. Uncomment the folowing lines in httpd.conf:

    LoadModule dav_module modules/
    LoadModule dav_fs_module modules/

  2. hi
    Thanks in advance for your detailed & simple explanation but
    the link provided in step 3 Seems it’s not working. is there any other alternative source for getting those files?

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s