Windows SVNServer installation and configuration details

  • 2020-05-14 05:31:25
  • OfStack

This section explains the installation and configuration of SVNServer under Windows, mainly including installation, configuration, testing, building library and import, etc. The following is a detailed introduction, I hope it will be helpful for your learning.

1. Configure the environment

Windows2003ServerwithSP1
ApacheHTTPServerv2.0.55
Subversionv1.4.2

2. Ann � ApacheHTTPServer

Change 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. Ann � Subversion

Here, the zip package is used, unzipped to the C disk, and C:\ svn-win32-1.4.2 \bin is added to the environment variable PATH.
The directory structure after decompression is as follows:
C:\svn-win32-1.4.2\bin\
C:\svn-win32-1.4.2\iconv\......
l copies mod_dav_svn.so and mod_authz_svn.so from C:\ svn-win32-1.4.2 \bin to C:\ApacheGroup\Apache2\modules.
l copy all DLL files in C:\ svn-win32-1.4.2 \bin to C:\ApacheGroup\Apache2\bin. Note that it is best to stop Apache when copying DLL files.
l :\ApacheGroup\Apache2\conf\ httpd.conf open the C:\ApacheGroup\Apache2\conf\ httpd.conf file with a text editor and find the following two lines
#LoadModuledav_modulemodules/mod_dav.so
#LoadModuledav_fs_modulemodules/mod_dav_fs.so
Remove the # in front, and then add the next two lines after all LoadModule
LoadModuledav_svn_modulemodules/mod_dav_svn.so
LoadModuleauthz_svn_modulemodules/mod_authz_svn.so
Then restart Apache

4. Build library

After the installation and configuration of SVNServer is completed, the library will need to be built. Assume that the root directory of all libraries is F:\svn, and to build a library named testrepos, open the DOS window, enter the F:\svn directory, and then enter svnadmincreatef:\svn\testrepos
Some directories and files will be generated in f:\svn\testrepos. Then add the following at the end of C:\ApacheGroup\Apache2\conf\ httpd.conf and repeat Apache
< Location/svn >
DAVsvn
SVNParentPathf:\svn
< /Location >

5. Test

Open the DOS window and enter a temporary directory F:\temp
svncohttp: / / localhost/svn/testrepos executed correctly after "Checkedoutrevision0. The information will be shown.

6. The import

The installation and configuration of SVNServer requires importing, such as creating a directory under a temporary folder (e.g. C:\temp)
trunk
branches
tags
Under the DOS command line into C: \ temp directory, and then execute svnimport. http: / / localhost svn/testrepos - m "Initialrepository" execution are successful you will be prompted to submit the revised version of the 1.

7. About the establishment of the library

It is recommended to establish one library for each project, e.g. :
F:\svn\project1
F:\svn\project2
Create the following structure for each library (the directory structure recommended in the official Subversion manual)
F:\svn\project1\trunk this directory is used to store project code under development
F:\svn\project1\branches this directory is used to store version branches under development
F:\svn\project1\tags this directory is used to store branches that are no longer changing. The installation and configuration of SVNServer are explained here.


Related articles: