Subversion for Windows Installation Guide

Source: Internet
Author: User
Tags svn version control system tortoisesvn

Subversion for Windows Installation Guide

Summary

This article provides an easy installation guide that describes the steps to install a Subversion server in a Windows environment, as well as the installation steps for TORTOISESVN client tools.

1 Brief Introduction

Subversion is a version control system that is designed based on the functionality of the CVS (Concurrent versions system), but improves some of the drawbacks of CVS, such as the inconvenience of moving the file directory in CVS, and the addition of additional functionality For example:.... Wait a minute.

Because the subversion files currently in hand are written primarily for Linux users, this document specifically addresses the steps to install subversion in a Windows environment, and hopefully this document will help you quickly install subversion.

In the installation process, you will need to enter some command line instructions, I will not explain the purpose and meaning of some instructions, so you should be familiar with the basic DOS instructions, you should also check the Subversion of E-books, to understand the subverion command tool usage. Graphical interface is convenient, but familiar with the use of command tools, you can get complete freedom.

1.1 Reading Basic Concepts

If you lack the basic concept of a version control system, even if you can successfully install Subversion, you may not know what to do next after the installation is complete. Here's just a little bit of a basic concept to remember that you'll eventually have to read the official Subversion document.

1.2 Environment and version

The following is the author's installation of Subverion environment and version:

Windows Server with SP4

Apache HTTP Server v2.0.49

Subversion v1.0.4

TortoiseSVN 1.0.6 Build 1200

2 Installation and Establishment Subversion Server

This section describes the steps required to install subversion, and prepare a stable machine to act as a subversion server.

2.1 installation Apache HTTP Server

To http://httpd.apache.org/download the Apache HTTP Server version 2.0 for Windows installer, the file I downloaded is apache_2.0.49-win32-x86-no_ssl.msi.

After downloading direct installation, installation process is very simple, not 贅, but before installation please check your computer has installed IIS, because the Apache preset use port, will be with IIS Web site collision, you have to shut down IIS Web platform, and then install Apache HTTP Serv Er

After the installation is complete, open the browser, browse the Web site HTTP://127.0.0.1/to see if there is a successful installation of the Web page.

2.2 installation Subversion

to http://subversion.tigris.org/download the latest version of subversion, you can download the. zip or packaged automatic installer, I downloaded the file svn-1.4.0-setup.exe.

Install directly after downloading, the installation process is the next step, nothing special. Once the installation is complete, even the necessary environment variables are set up (if you download the. zip file, set it yourself).

Copy the mod_dav_svn.so and mod_authz_svn.so in the <subversion_root>/httpd/directory to the <apache_root>/modules/directory.

Copy Libdb42.dll, Libeay32.dll, and Ssleay32.dll from the <subversion_root>/bin/directory to bin or modules information below <Apache_root> Drum

Then use the Instrument editor to open the Apache HTTP Server httpd.conf (in the <apache_root>/conf/directory), look for a bunch of LoadModule instructions, first find the following two lines:

#LoadModule Dav_module modules/mod_dav.so
#LoadModule Dav_fs_module modules/mod_dav_fs.so

Delete these two front ' # ' characters and add the following line to the back of the group LoadModule instruction:

LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
 

Restart the Apache HTTP Server.

Problem Elimination

If the Apache HTTP Server does not start, check the following steps:

Check to see if Subversion's path is in the system's%PATH% environment variable.

Check that you are joining the httpd.conf, and remember that mod_dav_svn.so and mod_authz_svn.so must be loaded after the other mod_dav*.so modules.

2.3 Set Apache HTTP Server

Open the httpd.conf of Apache HTTP Server with the Instrument editor and add the following lines to the end of the file:

<Location/svn>

DAV SVN

Svnparentpath/absolute/path/to/repository

</Location>

The path specified after the Svnpath is the absolute path to the file library, assuming that the path that our repository actually holds is d:/svn/repository, then the content to add to the httpd.conf is:

<Location/svn>

DAV SVN

Svnparentpath D:/SVN

</Location>

This means that anyone can access all of the files that are located below D:/svn directory through the http://myserver/svn/< file name >. Note: The first slash of the/svn behind the Location tag is not limited.

The next step is to create a file base under D:/SVN.

Tips

Easy to see, here I use Svnparentpath to unify specifies the parent URL path name for all files, if you need to specify different URL path names for different repositories, use Svnpath instead, refer to [1] for more information.

2.4 set up a file library

Let's say we're going to put all the files in the D:/SVN directory, and now we're going to build a test file library, called the Repository, and the instructions are:

MD D:/SVN

Svnadmin Create D:/svn/repository

After the command finishes, check to see which directories and files are generated under the D:/svn/repository directory.

Warning

The file library must not be built on any remote storage media, such as a network hard disk drive.

At this time you have set up a file library, you can first test in the browser, Web site input http://svn/repository, to see if you can see the contents of the file library, normal words should be like the following figure.

If the above test can be passed, it should be done. If you still want to test if you can get the entire work copy out of the file library, you may perform the following directives (not necessary):

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.