This guide will show you how to install a Subversion (SVN) server with Uniform Server. This guide assumes that you have a clean installation of Uniform Server running currently and do not have another version of Apache installed on your PC.
Contents |
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.soand add this below it:
LoadModule dav_svn_module modules/mod_dav_svn.so
svnadmin create --fs-type bdb testor
svnadmin create --fs-type fsfs testNote: test is the folder you created (under your repository root) earlier in Step #2; for more info on which fs-type to choose, read Chapter 5, Repository Data-Stores in the SVN book for more information
First, you should add this anywhere in your configuration file (preferably between "<IfModule mod_dav.c>" and "</IfModule>"):
<Location /svn>
Dav svn
SVNParentPath /svn
AuthType Basic
AuthName "Subversion Repositories"
AuthUserFile /htpasswd/svn/.htpasswd
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location> Note #1: If you do not want your repository to have read access for everyone (even those who do not have the password) remove the <LimitExcept>
Note #2: /svn is the path to your repository root, if you used any drive other than what Apache is on (Uniform Server default = W:\) for your repository root, you'll have to put the drive letter in front of the / (for example, C:\SVN becomes C:/SVN)
Next, create the .htpasswd file which will store the username & password needed to modify your repositories. Open the Command Prompt again, cd into Apache's bin directory (W:\usr\local\Apache2\bin). Execute:htpasswd -c .htpasswd <username>To add more usernames & passwords, execute:
htpasswd .htpasswd <username>Note: Replace <username> with the username of your choice.
For more advanced configurations (not needed by many) view Setting Up an SVN Server.