How to configure SVN
Well, I would not like to tell what is SVN, better google for it. I was configuring on my local machine so that we can create a common repository and then give it access to other friends using Apache HTTP Server. To configure SVN on your machine, firstly download the following three.
1. Apache 2.0.59 (apache_2.0.59-win32-x86-no_ssl) http://httpd.apache.org/download.cgi
2. SVN1Click Setup (Svn1ClickSetup-1.4.4) http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
3. Tortoise SVN 1.4.5 http://tortoisesvn.net/downloads
Install the above three.
Now you need to configure Apache HTTP Server.
Follow the following Steps : -
Step 1.
Copy the module files mod_authz_svn and mod_dav_svn from installtion directory of SVN (In my case it is C:\Program Files\Subversion\bin ) and paste it into Apache HTTP Server installation directory modules folder (In my case C:\Program Files\Apache Group\Apache2\modules )
Step 2.
Now open httpd.conf from installtion directory of Apache HTTP Server 2.0.59 (In my case it is C:\Program Files\Apache Group\Apache2\conf\httpd.conf )
Step 3.
In this file search
LoadModule
You will find a number of lines starting with LoadModule, in the beginning of it i.e. after
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Paste this
#Added by me begin
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#Added by me end
Step 4.
look for LoadModule line ending with "mod_dav.so". You will see that this line begins with # (it is commented, remove '#' to uncomment it)
LoadModule dav_module modules/mod_dav.so
Step 5.
Now, press PGDOWN and go to end of this file and paste the following at the end of httpd.conf
# Configure Subversion repository
DAV svn
SVNPath "D:\svn"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "D:\svn_conf\passwd"
Require valid-user
Save this file and Now you are almost done, without knowing what you are doing ;-)
Now create two folders namely svn and svn_conf in D drive.
right-click the svn folder and select TortoiseSVN -> Create repository here... command. Now,TortoiseSVN will ask for what type of repository you'd like to create. Select Native filesystem (FSFS) and click OK. You will get a message telling you that "The Repository was successfully created."
Creating user for your SVN
Open command prompt and Move to Installation directory of Apache HTTP Server (In my case it is cd "C:\Program Files\Apache Group\Apache2\bin" )
Now run the following
This will ask you for password for user cksachdev 2 times and then password will get stored to passwd file. Very simple. Now to add more users here are the steps ....
The next step is to create user for your SVN and providing them authentication. For this you need to create a password file. If you see the last step i.e. Step 5 you specified one file D:\svn_conf\passwd This file will serve the purpose of authentication. Here is command you need to use for creating the users of your SVN and with authentication. The password will be stored in MD5 encryption format.
If Apache HTTP Server is already running then you can find it in your taskbar and click on Restart to apply the changes you made in above steps.If every thing goes fine then your SVN is configured.
If you are facing some error then please let me know in comments so that I can make prior changes in steps and make it a very short tutorial to configure SVN.
Here is one link with steps http://jamesselvakumar.wordpress.com/2008/03/14/extending-subversion-by-using-tortoisesvn/
Thanks
--
Chetan Sachdev
Read More
Well, I would not like to tell what is SVN, better google for it. I was configuring on my local machine so that we can create a common repository and then give it access to other friends using Apache HTTP Server. To configure SVN on your machine, firstly download the following three.
1. Apache 2.0.59 (apache_2.0.59-win32-x86-no_ssl) http://httpd.apache.org/download.cgi
2. SVN1Click Setup (Svn1ClickSetup-1.4.4) http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
3. Tortoise SVN 1.4.5 http://tortoisesvn.net/downloads
Install the above three.
Now you need to configure Apache HTTP Server.
Follow the following Steps : -
Step 1.
Copy the module files mod_authz_svn and mod_dav_svn from installtion directory of SVN (In my case it is C:\Program Files\Subversion\bin ) and paste it into Apache HTTP Server installation directory modules folder (In my case C:\Program Files\Apache Group\Apache2\modules )
Step 2.
Now open httpd.conf from installtion directory of Apache HTTP Server 2.0.59 (In my case it is C:\Program Files\Apache Group\Apache2\conf\httpd.conf )
Step 3.
In this file search
LoadModule
You will find a number of lines starting with LoadModule, in the beginning of it i.e. after
# Example:
# LoadModule foo_module modules/mod_foo.so
#
Paste this
#Added by me begin
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
#Added by me end
Step 4.
look for LoadModule line ending with "mod_dav.so". You will see that this line begins with # (it is commented, remove '#' to uncomment it)
LoadModule dav_module modules/mod_dav.so
Step 5.
Now, press PGDOWN and go to end of this file and paste the following at the end of httpd.conf
# Configure Subversion repository
DAV svn
SVNPath "D:\svn"
AuthType Basic
AuthName "Subversion repository"
AuthUserFile "D:\svn_conf\passwd"
Require valid-user
Save this file and Now you are almost done, without knowing what you are doing ;-)
Now create two folders namely svn and svn_conf in D drive.
right-click the svn folder and select TortoiseSVN -> Create repository here... command. Now,TortoiseSVN will ask for what type of repository you'd like to create. Select Native filesystem (FSFS) and click OK. You will get a message telling you that "The Repository was successfully created."
Creating user for your SVN
Open command prompt and Move to Installation directory of Apache HTTP Server (In my case it is cd "C:\Program Files\Apache Group\Apache2\bin" )
Now run the following
htpasswd -c D:\svn_conf\passwd cksachdev
This will ask you for password for user cksachdev 2 times and then password will get stored to passwd file. Very simple. Now to add more users here are the steps ....
The next step is to create user for your SVN and providing them authentication. For this you need to create a password file. If you see the last step i.e. Step 5 you specified one file D:\svn_conf\passwd This file will serve the purpose of authentication. Here is command you need to use for creating the users of your SVN and with authentication. The password will be stored in MD5 encryption format.
htpasswd -mb D:\svn_conf\passwd UserName PassWord
If Apache HTTP Server is already running then you can find it in your taskbar and click on Restart to apply the changes you made in above steps.If every thing goes fine then your SVN is configured.
If you are facing some error then please let me know in comments so that I can make prior changes in steps and make it a very short tutorial to configure SVN.
Here is one link with steps http://jamesselvakumar.wordpress.com/2008/03/14/extending-subversion-by-using-tortoisesvn/
Thanks
--
Chetan Sachdev