Use Apache2 in UbuntuLinux to manage the Subversion version Version Control System

Source: Internet
Author: User
Use Apache2 in UbuntuLinux to manage the Subversion version Version Control System-Linux Enterprise Application-Linux server application information. For details, see the following. Last time we talked about the basic usage of Subversion, but it was just a single-host operation. If you want to perform collaborative development on the network, you need to use a Web server to manage the Subversion resource library. Here, we choose Apache 2, the next generation of the most famous server in the industry.

Reference: Debian-Reference

Except for the Ubuntu installation process, other steps are similar in other Linux distributions.

(Andyluo is my user name. Please modify it accordingly)

1. Install the Apache2 and Subversion modules.
Search for "apache2" in Synaptic, install apache2, apache2-common, apache2-utils, apache2-doc (apache documentation, recommended installation), libapache2-svn (Subversion module of Apache2 ).
2. Create a Subversion Library
Create directory:
$ Sudo mkdir-p/var/local/repos
Create a Subversion Library:
$ Sudo svnadmin create/var/local/repos
Grant the ownership to Apache (www-data) to perform read and write operations on the library files:
$ Sudo chown-R www-data: www-data/var/local/repos
3. Configure Apache2 (using the basic authentication method, that is, the user name and password)
Modify/etc/apache2/mod-available/dav_svn.conf and change the corresponding row:

DAV svn
SVNPath/var/local/repos
AuthType Basic
AuthName "Subversion repository"
AuthUserFile/etc/subversion/passwd

Require valid-user


Optional steps: Add a user authentication file (after adding the file, andyluo does not need to enter a password when using Subversion ):
# Sudo htpasswd2-c/etc/subversion/passwd andyluo
4. Restart Apache2:
# Sudo/etc/init. d/apache2 restart
5. Open your browser and visit http: // localhost/repos to view the page of the Subversion library. (Of course, there are no other things yet. We will import some files below)
6. add files in/home/andyluo/workspace to the workspace directory under http: // localhost/repos.
$ Svn import-m "Operation annotation"/home/andyluo/workspace http: // localhost/repos/workspace
7. checkout http: // localhost/repos/workspace file to/home/andyluo/test
$ Svn checkout http: // localhost/repos/workspace/home/andyluo/test

For technologies related to Subversion, please reply to the discussion.
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.