Installation
The four required software:
1. Apache2.0 and above versions.
2. subversion--can be downloaded from the official website
3. tortoisesvn--is a client tool for subversion and can be downloaded from the official website
4. svnservice--will automatically start the Subversion service mode automatically, is a small program.
Based on practical experience, the order of installation is as follows:
1. First install Apache.
2. Install Subversion. This allows subversion to automatically monitor that Apache has been installed, which saves a lot of manual work when configuring the Web server. If Apache is installed after this, additional work is required.
? Using Windwos Explorer, go to Subversion's installation directory (usually C:/Program files/subversion), find Files/httpd/mod_dav_svn.so and Mod_authz_ svn.so, copy these files to the Apache module directory (usually C:/Program Files/apache group/apache2/modules).
? Copy the/bin/libdb43.dll to the Apache module directory from the Subversion installation directory.
? Modify the Apache configuration file (usually C:/Program Files/apache group/apache2/conf/httpd.conf) using a text editor such as Notepad to make the following modifications:
Uncomment the following lines (remove the ' # ' tag):
#LoadModule Dav_fs_module modules/mod_dav_fs.so
#LoadModule Dav_module modules/mod_dav.so
Add the following lines to the end of the LoadModule section.
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
3. After installing TORTOISESVN, the GUI menu item will be added to the right-click menu after installation.
4. This can also be uneasy.
Configuration
The most primitive configuration has the following steps:
Now that you've set up Apache and subversion, Apache doesn't know how to handle subversion clients, such as TORTOISESVN. In order for Apache to know which directory is used as the Subversion repository, you need to use an editor (such as Notepad) to edit the Apache configuration file (usually C:/Program Files/apache group/apache2/conf/ httpd.conf):
At the end of the configuration file, add the following lines:
<Location/svn>
DAV SVN
Svnlistparentpath on
Svnparentpath D:/SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile passwd
#AuthzSVNAccessFile Svnaccessfile
Require Valid-user
</Location>
This configuration tells Apache that all of your subversion repositories are physically located in D:/svn, and the repository's external URL is: http://MyServer/svn/, Access requires user/password restrictions in the file passwd.
In order to create the passwd file, open the command line prompt (DOS) again, come to the Apache2 directory (usually C:/Program Files/apache group/apache2) by entering the following command to create the file
Bin/htpasswd-c passwd <username>
This would create a file with the name passwd which are used for authentication. Additional users can added with
BIN/HTPASSWD passwd <username>
Restart the Apache service again.
Point your browser to Http://MyServer/svn/MyNewRepository (Mynewrepository is the name of the repository you created earlier), and if everything works, you will be prompted to enter your username and password, and you will see the contents of the repository.
The explanation you just entered is:
set reset td> |
solution release |
<location/svn> |
means Subversion repository The URL is http://MyServer/svn/ |
DAV svn |
Tell Apache which module The request to respond to that URL-is now the Subversion module. |
Svnlistparentpath on |
For Subversion1.3 or later, this refers to Indicates that the repository is displayed under all Svnparentpath. |
Svnparentpath d:/svn |
Tell subversion to view the repository located in d:/ SVN |
AuthType basic |
Activate Basic authentication, username/password |