Windows Svnserver installation and configuration detailed _win server

Source: Internet
Author: User
Tags svn win32

This section describes the installation and configuration of Windows Svnserver, mainly including installation, configuration, testing, building and import, and so on, the following is a specific introduction, I hope to help you learn.

1. Configure the Environment

Windows2003serverwithsp1
ApacheHTTPServerv2.0.55
Subversionv1.4.2

2. Installation Apachehttpserver

Modify the installation directory to C:\ApacheGroup
The default is to install to the C:\ProgramFiles\ApacheGroup directory
The directory structure after installation is as follows:
C:\ApacheGroup\Apache2\bin\
C:\ApacheGroup\Apache2\conf\ ...

3. Installation Subversion

Here, use the ZIP package, extract to C disk, and add C:\svn-win32-1.4.2\bin to the environment variable path.
The unpacked directory structure is as follows:
C:\svn-win32-1.4.2\bin\
C:\svn-win32-1.4.2\iconv\ ...
L COPY the mod_dav_svn.so and mod_authz_svn.so in the C:\svn-win32-1.4.2\bin directory to the C:\ApacheGroup\Apache2\modules directory.
L Copy all DLL files in the C:\svn-win32-1.4.2\bin directory to the C:\ApacheGroup\Apache2\bin directory. Note It is best to stop Apache when copying DLL files.
L Open the C:\ApacheGroup\Apache2\conf\httpd.conf file with a text editor to find the following two lines
#LoadModuledav_modulemodules/mod_dav.so
#LoadModuledav_fs_modulemodules/mod_dav_fs.so
Remove the front #, and then add the following two lines to the back of all LoadModule
Loadmoduledav_svn_modulemodules/mod_dav_svn.so
Loadmoduleauthz_svn_modulemodules/mod_authz_svn.so
And then back up Apache.

4. Building a library

Svnserver Setup and configuration are complete and you will need to build a library later. Suppose that the root of all libraries is F:\SVN, and you want to build a library called Testrepos, open a DOS window, go to the F:\SVN directory, and then enter Svnadmincreatef:\svn\testrepos
After the command is executed, some directories and files are generated in the F:\svn\testrepos directory. Then add the following at the end of the C:\ApacheGroup\Apache2\conf\httpd.conf file, and restart Apache
<Location/svn>
Davsvn
Svnparentpathf:\svn
</Location>

5. Test

Open the DOS window and go to a temporary directory F:\temp
The "Checkedoutrevision0" is displayed when the Svncohttp://localhost/svn/testrepos is executed correctly. of information.

6. Import

Svnserver installation and configuration needs to be imported, such as a directory under a temporary folder (such as C:\temp)
Trunk
Branches
Tags
Entering the C:\temp directory under the DOS command line, and then performing svnimport.http://localhost/svn/testrepos-m "initialrepository" execution success will prompt a revised version of 1 after the submission.

7. With regard to the establishment of the library

It is recommended that you create a library for each project, for example:
F:\svn\project1
F:\svn\project2
and then create the following structure for each library (the directory structure proposed by the official Subversion manual)
F:\svn\ Project1\trunk This directory is used to store the project code that is being developed
F:\svn\project1\branches This directory to hold the version branch in development
F:\svn\project1\ Tags this directory is used to store the branch that no longer changes. Svnserver installation and configuration here is the complete explanation.

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.