Build your own SVN code hosting service

Source: Internet
Author: User
Tags svn client hosting


This article original from Http://blog.csdn.net/voipmaker reprint annotated source.

The general company will build its own code warehouse, such as Svn,git, this article describes if you build the SVN server from the top of the CentOS


1. Install Apache SVN module and SVN

Yum Install MOD_DAV_SVN Subversion


2. Configure the SVN configuration file


Vim/etc/httpd/conf.d/subversion.conf

<Location/repos>    DAV svn    svnparentpath/var/www/svn    authtype Basic    authname "Authorization Realm "    authuserfile/etc/svn-pass    Require valid-user</location>

The above path can be modified according to your own situation


3. Add SVN users

Htpasswd-m/etc/svn-pass TestUser

Add user passwords as prompted


4. Create SVN directories and warehouses

Mkdir/var/www/svncd/var/www/svnsvnadmin Create  Test_projectchown apache:apache test_project-rchcon-r-T Httpd_ sys_content_t   /var/www/svn/test_projectchcon-r-t httpd_sys_rw_content_t   /var/www/svn/test_project

5. Restart Apach, enter on the browser

Http://ip/repos/test_project will prompt for username and password, svn client can also download code.


Build your own SVN code hosting service

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.