Installation and configuration of version control software (SubVersion)

Source: Internet
Author: User
Tags svn tortoisesvn

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.