SVN Server installation and configuration

Source: Internet
Author: User
Tags server installation and configuration tortoisesvn

I used the svn server is subversion, version: Setup-Subversion-1.6.6.msi, when I checked the information, I found that there is a simple configuration method SVN server visualsvn server, detailed build method please CLICK: detailed explanation of the entire process (including the server and client) of SVN version server matching. Try again later. After all, it is indeed troublesome to build the subversion.

Here is a brief summary of how to build a subversion. In fact, it is complicated to combine with Apache.

1. Install subversion and tortoisesvn:

Subversion: http://subversion.tigris.org/

Tortoisesvn is as follows: http://tortoisesvn.tigris.org

Install them one by one.

2. install Apache

I have installed apache2.2. Here I want to explain in particular that there are many problems with Apache configuration Svn in the integrated XAMPP Development Kit. We recommend that you install it separately. installing Apache separately may make the original XAMPP Development Kit unavailable. For how to build Apache + PHP + MySQL, see install and configure Apache + PHP + MySQL.

3. Combining subversion with Apache:

After installing Apache, go to the Subversion installation directory. Under the bin directory, select the mod_authz_svn.so and mod_dav_svn.so files and copy them to the modules directory of Apache installation directory, go back to the conf directory of the Apache installation directory and open httpd. CONF file, find

Loadmodule dav_module modules/mod_dav.soloadmodule dav_fs_module modules/mod_dav_fs.so

Remove the # annotation of the signature. In the <ifmodule! Before mpm_netware_module>, # Add the following content to loadmodule vhost_alias_module modules/mod_vhost_alias.so (approximately 127 rows:

 

 
Loadmodule dav_svn_module modules/mod_dav_svn.so loadmodule authz_svn_module modules/mod_authz_svn.so

 

Import the previously copied module to Apache and go to the end of the file. Add the following content:

 
<Location/SVN> Dav SVN svnpath D:/SVN/lianyu authtype basicauthname "Subversion repository" authuserfile D:/SVN/passwd/passwordsrequire valid-user </location>

The function of this statement block is to map the svn Server Directory to the virtual path SVN accessing Apache, as if we add a context when configuring tomcat. That is, when you access the/SVN address, Apache automatically transfers the request to the E: \ SVN \ repository directory.

0, svnpath D:/SVN/lianyu: repository path.

1. authtype indicates the authentication type. Here we use basic, which is also the most common verification method.

2. authname indicates the title name of the window when the logon dialog box appears.

3. authuserfile indicates the file for storing user login information. Here we save the file as E:/passwd/passwords. The file does not exist yet, but don't worry, the file will be created later.

4. require valid-user indicates that only authenticated users can access the service. Otherwise, anonymous users can access the service.

4. create user permissions:

In the previous configuration, we know that we will store the file for storing the user name and password in E:/passwd/passwords, that is, the passwords file under the e drive passwd directory. First, create a folder named passwd under the root directory of the E disk.

Create a password using the command line: htpasswd-c e:/passwd/passwords hello

We can see that the command has been successfully executed, and the role of the-C parameter is create, that is, to create a new file, because the passwords file does not exist before, so we need to create it first. The subsequent file path indicates the location and file name of the file to be created. This is called Passwords. Note that the passwd directory of the parent directory must be created first. Otherwise, the htpasswd Command reports an error. The last "hello" indicates that a user with the username "hello" will be created. The following prompt requires you to enter the password of the hello user. The password is encrypted by MD5 by default. Enter World as the password and confirm again. The password is created successfully.

Restart Apache once, and the entire SVN server is set up.

There are many other advanced applications for the entire SVN setup. You can refer to the book "deep dive into the series 2_subversion" in the middle of the wind. Due to the large file size, all files cannot be uploaded, you can search on Baidu.


References:

Author of series 2_subversion: fengzhong (this is very detailed, so I will not talk about it much)

 

By oak lodge from http://www.cnblogs.com/babyzone2004/

SVN Server installation and configuration

Address: http://www.cnblogs.com/babyzone2004/archive/2010/08/07/1794594.html

Subversion

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.