Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
help:
any one have setup of apache svn?? plese help me if any one have?
Posted

Hello,

If you are planning to install SVN on 32 bit Windows then you can do it in following ways.

Simple Way
Download the binary distribution from one of the below mentioned sites and install it.

From the Collabnet site you will have to download "Subversion 1.8.8 + Apache Server (Windows 32-bit)" & from Wandisco web site you will have to download the server using link named "Download Windows Subversion 1.8.9".

Longer Way

  1. Download the httpd-2.4.9-x86-vc11.zip from ApacheHaus[^].
  2. Download mod_svn-1.8.8-ap24-vc9-x86.zip from ApacheHaus[^]
  3. Extract the httpd-2.4.9-x86-vc11.zip you have downloaded earlier into a folder sat "D:\SERVER\APACHE24", referred as HTTPD_HOME here after
  4. Copy folders bin and modules from mod_svn-1.8.8-ap24-vc9-x86.zip file into HTTPD_HOME folder.
  5. Open HTTPD_HOME\conf\httpd.conf file and uncomment following lines from the module loading section.
    LoadModule dav_module modules/mod_dav.so
    LoadModule dav_fs_module modules/mod_dav_fs.so
    
    LoadModule auth_digest_module modules/mod_auth_digest.so
  6. Add following lines at the end of module loading section
    LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module modules/mod_authz_svn.so
  7. Your Apache server is now ready for SVN
  8. Create a new folder say SVNREPO on any drive having ample free space. This folder will house the svn repositories
  9. To create a new repository under this folder issue command similar to one shown below. The below command assumes that you have created the SVNREPO folder on E drive.
    svnadmin create E:\SVNREPO\myproject

    The successful execution of the above command will create following directory structure under E:\SVNREPO\myproject
    E:\SVNREPO\myproject
       conf
       dav
       db
       hooks
       locks
       format.
       README.txt

    The last two entries represents the files.
  10. Now it's time to enable SVN on apache HTTD server, for this create a new file named svn.conf under HTTPD_HOME\conf\extra folder.
  11. I generally prefer to put load module entries for svn modules (mod_dav_svn.so, mod_authz_svn.so) at the top of this file. You may want to follow this practice as well, in which case you should not put those entries mentioned in point 6, in httpd.conf file. Your sample svn.conf file should look something like the one shown below
    txt
    <Location /svn/>
      DAV svn
    
      SVNListParentPath on
      SVNParentPath E:/SVNREPO/
    
      SVNPathAuthz off
      AuthzSVNAccessFile "conf/svn_authz.txt"
    
      AuthName "Subversion Repositories"
      AuthType Basic
      AuthUserFile "conf/svn_passwd.txt"
    
      require valid-user
    </Location>

    The meaning of each of the directive can be found in svn manual available here[^].
  12. The only remaining steps are to define the svn users and the access control for those users. To define the users use following command from HTTPD_HOME\bin
    htpasswd -b ..\conf\svn_passwd.txt USER_ID USER_PASS

    Replace USER_ID and USER_PASS with actual user id and passwords.
  13. Create a new file named svn_authz.txt under HTTPD_HOME\conf folder. This file basically controls the access to various repositories. Here is a sample authorization file
    [groups]
    grp_admin = your_user_id
    grp_readonly = user_id1, user_id2
    grp_dev_myproj = dev_id1, dev_id2
    
    #-------------------------------------------------
    # ROOT REPO
    #-------------------------------------------------
    [myproject:/]
    @grp_admin = rw
    
    
    #-------------------------------------------------
    # DEV REPO
    #-------------------------------------------------
    [myproject:/trunk]
    @grp_readonly = r
    @grp_dev_myproj = rw

    For more details please refer to the svn manual mentioned earlier.
  14. Regards,
 
Share this answer
 
v2
I use VisualSVNServer which is a free SVN server. Has served me well. see http://www.visualsvn.com/[^]

It plays nicely with VisualStudio and some other plugins such as ankhsvn[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900