Hi
Today I would like to share configuring one of the most popular open source version control software called "Subversion".
Subversion is an open source version control software available for windows version.
Subversion can be configured in two way
- Using Command Prompt. (Should be available in zip file)
- One Click Installer.(Should be available in msi file)
Pre-Requisites:
Before you install Subversion there are some pre-requisites :
1) Make sure Apache is already installed , if not, download from here : click here
2) To know wether apache is installed correctly or not make sure by typing http://localhost/ in Internet browser, then the output should be looks similar to the following screen.
Installing Subversion:
- Get the latest version of Subversion : Click Here
- Double Click the Setup-Subversion-version number.msi
So far we have successfully subversion in windows.
Integrating Subversion with Apache:
Now we have to integrate subversion with Apache, to do this follow the steps:
- Open Apache Root Directory ( e.g: C:\Program Files\Apache Software Foundation\Apache2.2\modules)
- Open Subversion Root Directory (e.g: C:\Program Files\Subversion\bin)
- Start >> All Programs >> Subversion >> Click On "Readme"
- Follow the instructions that are mentioned in the Readme.txt file. or follow step 5
- Instructions are:
- Create a repository folder name "svn" in C drive.(e.g: C:\svn)
- Copy mod_dav_svn.so, mod_authz_svn.so from C:\Program Files\Subversion\bin to C:\Program Files\Apache Software Foundation\Apache2.2\modules.
- Add "C:\Program Files\Subversion\bin;" to the SYSTEM PATH
- Now Restart Apache Services (From Start>> All Programs >> Apache HTTP Server >> Control Apache Server >>Restart.
- Now go to Start>> All Programs >> Apache HTTP Server >> Configure Apache Server >> click on Edit the Apache httpd.config configuration file.
-
Uncomment the following two lines:
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_module modules/mod_dav.so
-
Add the following two lines to the end of the LoadModule section:
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
-
Add the following to end of the file.
<Location /svn>
DAV svn
SVNPath C:\svn
</Location>
- To make sure you have installed Subversion correctly go to command prompt and type : svn --version .The following output should be appear.
In the Next tutorial we will continue adding project to Subversion and which further can access through localhost.
Please post comments and feedback .
Kumar.