Using Apache2.2 and SVN1.6 build SVN version control platform

1, install Apache
Install the Apache software directly, enter the information during the installation process the first two in the Network Domain and Server Name to enter localhost, the following email on just that, and if the machine is installed and started in iis, iis services, we first stopped. Otherwise, for apache listen port conflict.
2, Installing Subversion
Note: If there is a 1.4.6 version of the binary exe installation file, and version 1.6 currently only source, extract down to use.
3, Apache and subversion integration
The first step:
Svn copy installation path \ bin files and, copy them into the Apache modules directory, copy the SVN \ bin \ libdb44.dll, libeay32.dll, and ssleay32.dll to the Apache \ bin the next.
Step Two:
Use Notepad text editor to edit the Apache configuration file \ conf \ httd.conf the following modifications:
Remove the following line (remove the # at the beginning):
# LoadModule dav_fs_module modules /
# LoadModule dav_module modules /
The last of the LoadModule section, add the following two lines:
LoadModule dav_svn_module "C: / Program Files / Subversion / bin /"
LoadModule authz_svn_module "C: / Program Files / Subversion / bin /"
The third step:
In the end of the file, append the following statement:
<Location /repository>
DAV svn
SVNParentPath D: / SVN / repository
</ Location>
One / repository is to tell Apache SVN using this URI as an access point, you can choose; following D: / SVN / repository is the storage location of the SVN repository, you can own optional, but this directory must exist.
Above this is a multi-library configuration, the single library, can SVNParentPath into SVNPath. Gesha difference between these two? Simply put, many libraries is the following can have multiple repository, such as can **localhost/repository/repo01, **localhost/repository/repo02 to access different repository, corresponds to the D: / SVN / repository The following subdirectories repo01, repo02, while the single library can only be used **locahhost/repository/, to visit the only repository.
Anxious people may now go to visit these link, and the result is not let you down ah? Because we have not yet established repository, of course, can not access, the establishment of the method is to use SVN installation directory \ bin following svnadmin.exe, at the command line "svnadmin create D: / SVN/repository/repo01", on the establishment of a repo01, then Restart Apache, then visit **localhost/repository/repo01, is not to see "Revision 0: /"? This shows that the repository already in operation (the initial version 0).
4, basic authentication and access control
SVN repository up and running successfully, you always want to put forward a repository user name password? In addition, you may also need to give a different account or in a different directory on the role assigned different permissions (read-only, writable.
The third step is to change the settings
<Location /repository>
DAV svn
SVNParentPath "D: / SVN / repository"
AuthType Basic
AuthName "your-name's subversion repository"
AuthUserFile "D: / SVN / svn_auth"
Require valid-user
</ Location>
Red lines this is what we want, just write a big problem which AuthName, AuthUserFile casually put that, which is maintained by the user name and password. Note that this file is generated by Apache, is not you just set up a text file written opinions on the user name password OK:) concrete with the Apache htpasswd command:
htpasswd-c filename username # create a password file, and write the username of the information, enter your password after the prompt
htpasswd filename username # which the current password file to append a username after the information to do this step, restart Apache, then the browser to access your repository, is not prompt you to enter a user name and password authentication is such a basic, followed by permission. Or the usual first change httpd.conf:
<Location /repository>
DAV svn
SVNParentPath "D: / SVN"
AuthzSVNAccessFile "D: / SVN / svn_rule"
AuthType Basic
AuthName "your-name's subversion repository"
AuthUserFile "D: / SVN / svn_auth"
Require valid-user
</ Location>

This svn_rule is what? In fact, is a text file, where no additional extension is a Unix-style, this file defines each role for each account or can do. Look at a few examples:
[Repo01: /]
user1 = rw
user2 = r
For many libraries, define one repo01 all directories, read and write allows user1, user2 read only
[Repo01: / Project1]
user1 = rw
user2 = r
And similar to the above, but provides refined to sub:)
[/ Project1]
user1 = rw
user2 = r
This single library that is the case:)
admin = user1, user3
readonly = user2, user4

[Repo01: /]
@ Admin = rw
@ Readonly = r
This role is to set up, and the front of the main differences are with the group, and group name in front of @, and user name to distinguish.
标签: lt, configuration file, email, apache2, installation path, directory copy, subversion, c program, repository, server name, apache configuration, storage location, access point, apache modules, apache software, network domain, notepad text editor, bin files, control platform, httd
分类: Development
时间: 2011-02-21


  1. VisualSVN Server build svn version control management

    Why use VisualSVN Server instead of Subversion, I believe used Subversion Server will have a feeling, feeling ...
  2. ------- SVN SVN version control server-side installation and configuration (turn, modified)

    Source: Subversion Chinese Station How to quickly build a Subversion server, and use in the project, which is ...
  3. Eclipse, SVN version control plug-in installation and use of

    Previously mentioned SVN version control and client installation and configuration, here again talking about t ...
  4. Google project hosting the SVN version control with MyEclipse

    Not long ago, one year of an ERP system development, architecture Spring2.5 + Struts1.2 + Hibernate3.0 + DWR + ...
  5. Clear SVN version control

    @echo On @Rem Delete SVN version control directory @PROMPT [Com] @for /r . %%a in (.) do @if exist "%%a\. ...
  6. Free SVN version control server, collect, treasure it quickly

    Domestic: Only need to register to use, very fast, using http for transport, ...
  7. struts + hibernate + spring svn version control of the URL address [transfer]

    struts+hibernate+spring Version control with svn URL Address [ Go ] 2007-08-09 16:04 struts+hibernate+spring V ...
  8. svn version control study

    svn principle: 1. Version control allows you to have the ability to run the risk of the past would have been u ...
  9. SVN version control server and client installation tutorial

    ps: some problems really hard to find a sub to ah Recently done with svn under. Net version control program. F ...
  10. myeclipse svn version control plug-ins installed

    myeclipse svn plugin installed MyEclipse 6.X 6.x of the operation is relatively simple and can be provided thr ...
  11. svn version control software

    1. Vss, cvs, svn comparison software control 2. Vss, cvs, svn mode 3. Svn install and configure 4. Svn users t ...
  12. SVN version control ignore

    Sometimes if you can not point the next eclipse plugin Add svn: ignore but do not compare to how to do this. F ...
  13. myeclipse svn version control plug-in installation

    myeclipse svn plugin installed MyEclipse 6.X 6.x operation is relatively simple and can be provided through th ...
  14. EA's SVN version control

    How to set just said about EA, and Subversion with TortiseSVN do version control, is simply why do so again. H ...
  15. <Switch> SVN version control

    Most software has a typical lifecycle: code, test, release, repeat. There are two problems with this process. ...
  16. SVN version of the controller installation and configuration

    SVN version of the controller installation and configuration Source: Subversion Chinese Station How to quickly ...
  17. Deleted in SVN and the SVN version from the server to delete the library file method

    Deleted in SVN <br /> When using the svn version control system, each directory will have a. Svn directo ...
  18. svn-1.4.6 + Apache2.2.6 + Eclipse version control (switch) For 1.4.0 the svn, only with Apache 2.0 Otherwise ...
  19. linux environment to build svn server

    Can choose Apache + SVN build the environment. (Hypothesis testing machine equipped with Ubuntu) 1. Install Ap ...