How to build Apache+subversion (ZT) in a Windows environment

Source: Internet
Author: User
Tags svn client

I always have an idea is to build a Subversion server like SCM on this machine, and then submit it every day after writing the code, this feeling good oh, before I built a pure Subversion server in the Windows environment excited a moment, But slowly feel like this every time with the form of file://to visit Subversion good original OH. Yesterday I made up my mind to build up the apache+subversion environment. Nnd actually I took this from 9:00~18:00. Why did you do that? It is because the server side of subversion is version 1.5 and the client is 1.6.4, version inconsistency caused me to always access the 403 error. I wrote him down today so I could use it next time.

Prepare the Checklist:
1, Setup-subversion-1.6.2.msi
2, Tortoisesvn-1.6.0.15855-win32-svn-1.6.0.msi
(Watch out for all the 1.6 versions I used)
3, Apache 2.2

To install the configuration steps:
1, install Apache all the way to the default settings on it, installation complete as long as open browser input http://127.0.0.1, display itworks! It's OK.

2. Install Subversion server side and client

3. Locate the mod_dav_svn.so and mod_authz_svn.so and Libdb44.dll copied to the modules directory under the Apache installation directory under the bin directory of the Subversion server-side program.

4, edit Apache http.conf file (here is the most troublesome)
In the LoadModule module, copy the following four lines of code up
LoadModule Dav_module modules/mod_dav.so
LoadModule Dav_fs_module modules/mod_dav_fs.so
LoadModule Dav_svn_module modules/mod_dav_svn.so
LoadModule Authz_svn_module modules/mod_authz_svn.so
Copy the following lines of code at the end of the file

DAV SVN
Svnlistparentpath on
Svnparentpath C:/SVN
#SVNPath C:/SVN
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile "C:\Program Files\apache software foundation\apache2.2\passwd"
Authzsvnaccessfile "C:\Program Files\apache software Foundation\apache2.2\authz"
Require Valid-user

5. Use the Htpasswd.exe in the Apache/bin directory to generate the user name and password file passwd

6, using the SVN client to generate a file warehouse, and then copy the Authz and the previously generated passwd files to the Apache installation directory

7, edit the content of the Authz, in the form of the existence of the following can be
[Groups]
admin = Peter
[/]
* = R
@admin = RW

8, restart Apache, finish writing!!!

How to build Apache+subversion (ZT) in a Windows environment

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.