Old:Installing SVN: Difference between revisions

Jump to navigation Jump to search
Numbered lists will be messed up if list item is longer than a paragraph
No edit summary
(Numbered lists will be messed up if list item is longer than a paragraph)
Line 17: Line 17:


== Integrating Apache + SVN ==
== Integrating Apache + SVN ==
# Add this anywhere in your configuration file (preferably between "<IfModule mod_dav.c>" and "</IfModule>"):<pre><nowiki>
First, you should add this anywhere in your configuration file (preferably between "<IfModule mod_dav.c>" and "</IfModule>"):
<Location /svn>
<pre><nowiki><Location /svn>
     Dav svn
     Dav svn
     SVNParentPath /svn
     SVNParentPath /svn
Line 27: Line 27:
         Require valid-user
         Require valid-user
     </LimitExcept>
     </LimitExcept>
</Location>
</Location></nowiki></pre> ''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>''
</nowiki></pre> ''Note: If you do not want your repository to have read access for everyone (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)''
# /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:<pre>htpasswd -c .htpasswd <username></pre> To add more usernames & passwords, execute:<pre><nowiki>htpasswd .htpasswd <username></nowiki></pre> ''Note: Replace <nowiki><username></nowiki> with the username of your choice.''
# Finally, let's 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:<pre>htpasswd -c .htpasswd <username></pre> To add more usernames & passwords, execute:<pre><nowiki>htpasswd .htpasswd <username></nowiki></pre> ''Note: Replace <nowiki><username></nowiki> with the username of your choice.''
For more advanced configurations (not needed by many) view [http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html Setting Up an SVN Server].
For more advanced configurations (not needed by many) view [http://tortoisesvn.tigris.org/docs/TortoiseSVN_en/ch03.html Setting Up an SVN Server].


Anonymous user

Navigation menu