SVN Server Build---Apache2 build (Ubuntu14.04)

Source: Internet
Author: User

Overview

SVN server has two forms, one is implemented by Apache, which we can access through the browser, and the second is to install the SVN server software
This blog mainly describes how to build SVN server through Apache


Environment Description:Ubuntu DeskTop 14.04SVN 1.8apache2
1. Installing Apache2 and SVN
sudo apt-get install apache2sudo apt-get install subversionsudo apt-get Install LIBAPACHE2-SVN
Once the installation is complete, you will have direct access to the Apache homepage, and click on the link below to test your apache2.http://localhost/

2. Create SVN repository
mkdir ~/SVNREPOSCD ~/svnrepossvnadmin Create trunk

Jiangzi created a trunk version of the library, and then our project can be put into, generally we will also create 3 repositories trunk,tags,branches general new SVN Library default conf,db, and so on files or folders, Where Conf is the SVN repository configuration file, in DB is the SVN database, very important


3. Modify the Apache2 configuration file
sudo vim/etc/apache2/apache2.conf
Add the last few lines at the end of the configuration file,
<Location/svn>   DAV svn    svnpath/home/galis/svn/trunk   authzsvnaccessfile/home/galis/svnrepos/ Trunk/conf/authz   authtype Basic   authname "Subversion Repository"   authuserfile/home/galis/svnrepos/ TRUNK/CONF/HTTP_PASSWD   Require valid-user</location>

Here are a few things to note:
1./SVN means that you can access the resource by HTTP://LOCALHOST/SVN 2. Svnpath represents the actual location of this resource 3. The authzsvnaccessfile represents a settings file for access rights 4. AuthUserFile represents the user and password configuration file
4. User Management and access control
User management is through the Conf file under the passwd file, in order to and later SVN Server software user and password configuration file, copy passwd file, renamed to HTTP_PASSWD. We can add a user by using the HTPASSWD command



Then the http_passwd file content changed, in fact, the user name and password separated by a colon.


File Rights Management is through the Conf file under the Authz file, modify the configuration file, at the end of the statement represents all files, all users can read and write


5. Restart Apache2

One thing to remember is that once you modify the Apache2 configuration file or the Passwd,authz file, you need to restart apache2.






6.Checkout Engineering


7. Frequently Asked Questions

You may not be so smooth at first, if there is a problem, you should read the log first.














Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

SVN Server Build---Apache2 build (Ubuntu14.04)

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.