Windows Svn+apache to build SVN server

Source: Internet
Author: User
Tags svn win32 port number tortoisesvn

Windows Svn+apache to build SVN server

Using software:

Apache_2.0.55-win32-x86-no_ssl.msi

Setup-subversion-1.5.3.msi

Tortoisesvn-1.5.10.16879-win32-svn-1.5.7.msi

First, install the Apache server

Install Apache_2.0.55-win32-x86-no_ssl.msi, start is need to set up the URL ah, the mailbox Ah, casually set (real does not exist are no problem), and then is basically no brain next step

127.0.01 can access when the test is installed, the default is 80 ports, if 80 ports have been occupied, please modify the configuration file to modify the port number

Install SVN server side and client

Install Setup-subversion-1.5.3.msi, Midway installation will choose the Apache server version, choose 2.0.x, and then the next step is no brain installation is complete.

Next install Tortoisesvn-1.5.10.16879-win32-svn-1.5.7.msi, continue to have no brain, do not do more than explain.

Third, configure SVN and Apache

1, copy subversionbin The following mod_authz_svn.so, Mod_dav_svn.so, Libdb44.dll, Libeay32.dll, Ssleay32.dll to the Apache installation directory under the Modules folder.

2, configure the Apache installation directory of the Conf folder under the httpd.conf file, find

#LoadModule Dav_module modules/mod_dav.so

#LoadModule dav_fs_module modules/mod_dav_fs.so Remove #, and then add two lines under these two lines

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

And after the last line is added

<Location/svn/>

DAV SVN

Svnparentpath C:SVN

AuthType Basic

AuthName "Test"

AuthUserFile "C:SVNPASSWD"

Authzsvnaccessfile "C:svnsvnaccessfile"

Require Valid-user

</Location>

3. Configure passwd and Svnaccessfile

Using the cmd command, CD to the Apache Bin directory, using htpasswd-c c:svnpasswd admin is added admin users, the new users do not have to-C,-D is to delete the user

Then c:svn the next new Svnaccessfile file, open with Notepad, add

[Groups]

admin = Admin

user = Test

[/]

* = R

@admin = RW

@user = RW

[Test:/svn/test]

Note the order before and after

5, then c:svntest down right click Create repository here

4, restart the Apche server, use Http://127.0.0.1/svn/test enter the configured account password is successfully opened.

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.