Ubuntu uses Apache2 to manage the Subversion Control System
Source: Internet
Author: User
Article Title: Ubuntu uses Apache2 to manage the Subversion control system. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open-source and other basic categories, except for the installation process only applicable to Ubuntu, other steps are similar in other Linux releases.
(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.
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.