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 http://kenai.com or http://code.google.com 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 mod_dav_svn.so and mod_authz_svn.so; 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/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so

replace those two lines with these lines below

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<location /svn_repository/my_repository>
 DAV svn
 SVNPath c:/svn_repository/my_repository
</location>

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

Or

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.

About uzzal

Software developer
This entry was posted in apache, Versioning, web design and tagged , , . Bookmark the permalink.

6 Responses to Installing SVN Server with XAMPP(Apache) on Windows

  1. Roel says:

    After installing subversion, apache will not start..

  2. Stephan says:

    Uncomment the folowing lines in httpd.conf:

    LoadModule dav_module modules/mod_dav.so
    LoadModule dav_fs_module modules/mod_dav_fs.so

  3. wiczek says:

    Thanks Stephan you ‘re better that StackOverflow forum.

  4. Govindarajan says:

    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?

  5. Muhammad Amin says:

    apache’s Module folder is no longer there to download
    if any one have alternate please share

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s