1. Download SVN binaries from - http://subversion.apache.org/packages.html#windows [Setup-Subversion-1.5.6.msi]
2. Run the downloaded file
a. Click next on the welcome screen
b. Click next on the license screen
c. Select "Binding for Apache 2.2.x" on Apache binding screen
d. Select a location of your choice or accept the default and press next on the installation location screen
e. Press the Install button and then Finish button after the installation is completed
3. Create a directory to hold all your projects say d:\myprojects or d:\repository
4. Initialize the project repo using the svnadmin command
#svnadmin create d:\myprojects
5. Stop Apache Service
6. Copy subversion httpd modules mod_authz_svn.so and mod_dav_svn.so from
7. Edit the file
8. Add the following lines at the end of module loading section (Tip: Search for "LoadModule" in the configuration file)
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
9. Add the following line to end of the configuration file
Include d:/svnconf/subversion.conf
10. Create a directory to hold our svn specific configuration, lets say d:\svnconf
11. Switch to the SVN bin directory
#cd D:\Program Files\Apache Software Foundation\Apache2.2\bin"
12. Create user password files in this directory using htpasswd
#htpasswd -cm d:\svnconf\svn-auth-file rrohit
(replace rrohit by your own name and enter some password you'll like to use on the password prompt)
13. Create the ACL file d:\svnconf\svn-acl and add the following content to it
[myprojects:/]
* = rw
10. Create d:\svnconf\subversion.conf (Replace the content in bold as per your setup and copy the content below in the subversion.conf file)
DAV svn
SVNPath d:/myprojects
AuthType Basic
AuthName "Subversion Project repository"
AuthUserFile D:/svnconf/svn-auth-file
Require valid-user
AuthzSVNAccessFile d:/svnconf/svn-acl
11. Copy libapr-1.dll from
12. Start apache service. Now you can access the subversion repository at http://localhost/myprojects
Now that you have your own Subversion server running, get Tortoise SVN for working with it. Grab this book if you want to understand all the details - Version Control with Subversion

0 comments:
Post a Comment