Tuesday, July 10, 2007

Subversion, Apache(httpd), ViewCVS windows XP setup and configuration continued.....

We can have browser support for subversion repository without viewCVS. It is obvious we will miss most of the features provided by viewcvs but we can have repository browsing and network access of repository over HTTP protocol supported by subversion. To achieve this we need to have apache module (mod_dav_svn) installed at the time of installation of subversion and have to do some configuration changes to httpd.conf (Apache configuration) file.

Referring previous post...

During the installation of subversion make sure to check the option to install the apache module. Subversion installation will modify the Apache configuratuion to load the modules (dav_svn_module & authz_svn_module) with a similar entry like:

LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so"
LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so"


These two modules will handle the Subversion requests. We have to ensure that the LoadModule section of httpd.conf should have an entry of apache module dav_svn.so before mod_dav_svn.so & authz_svn_module.so.

We need to edit the httpd.conf file to point Apache to the subversion repository.
Add the following lines to the end of the httpd.conf file.


Subversion repositories are residing in C:/opt. We can have any number of repository in C:/opt and all will be available to Apache.

** We can browse repository with the URL as http://localhost/svn/svn-root
where svn-root is one of the repository in C:/opt. Localhost can be replaced by hostname OR IP address of the installed Apache box when one wants to browse repository over network.

** we can access the repository using SVN client as
svn list http://localhost/svn/svn-root


cheers, make world open...

No comments: