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
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.