Install svn in Ubuntu to provide HTTP Version Management Service

Source: Internet
Author: User
Reference 1: For details about how to install and configure, see here. Reference 2: For details about some basic svn operations, see here. Reference 1 mentions the configuration of/etc/apache2/mod-enabled/dav_svn.conf. Note that & lt; Location/svn & gt; is a root configuration element, there is an & lt;/Location & gt; element at the end of the file dav_svn.conf, but it is also commented out. Remember to uncomment it. Introduction

Reference 1: For details about how to install and configure, see here.

Reference 2: For details about some basic svn operations, see here.

The configuration of/etc/apache2/mod-enabled/dav_svn.conf mentioned in reference 1 should be noted that Is a root configuration element. There is a root configuration element at the end of the dav_svn.conf file. Element, but it is also commented out. Remember to drop it uncomment.

In reference 2, when initializing svn repository, two commands are mainly used:

Java code

Svnadmin create library directory

To create the svn library.

The other is

Java code

Svn import directory to be checked file: // library directory

Import the local file to the created library directory.

After configuration, you can access svn through a browser, such as http: // localhost/svn/. You can see information such as subversion and version 0.

If a class such

Reference

Can't open file '/home/xx/applications/svn_server/xx/txn-current-lock': Permission denied

This error occurs because the user running apache does not have the write permission on the created library directory. Therefore, you need to perform the authorization. The policy can be to give the library directory chown to the apache running user, or add the apache running user to the group where the user created in the library directory is located, and then assign the group write permission, run the chmod 775 command.

View who runs apache2

Java code

Ps aux | grep apache

In Ubuntu, it is usually www-data.

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.