Install SVN + Apache on Fedora14

Source: Internet
Author: User
Tags password protection ssl connection netbeans
1. Install svn and httpd reference: # yuminstallSubversion # yuminstallhttpd2. Create a home directory and project repository reference: # mkdir/opt/svn/repos # chown-Rapache: apache/opt/svn/repos ** create the main directory of the repository and grant the permission to the apache user ** reference: # svnadmincreate

1. Install svn and httpd
Reference: # yum install Subversion
# Yum install httpd

2. Create a home directory and a project warehouse
Reference: # mkdir/opt/svn/repos
# Chown-R apache: apache/opt/svn/repos

** Create a repository home directory and grant permissions to apache users **
Reference: # svnadmin create/opt/svn/repos/doc
# Svnadmin create/opt/svn/repos/netbeans

** Create a project warehouse ** put the working document file in doc, and put the java source code in netbeans
3. Configure the/etc/httpd/conf. d/subversion. conf file.
The following two validation files are available:
Reference: LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

Change other content as follows:

Reference: Description "/repos" indicates that the address in the home directory is http: // localhost/repos on the webpage.
DAV svn
SVNParentPath/opt/svn/repos/The main directory of the host is/opt/svn/repos/
#
# Limit write permission to list of valid users.
#
# Require SSL connection for password protection.
# SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthUserFile/etc/svn-auth-file
Require valid-user
AuthzSVNAccessFile/etc/svn-access-file
#

4. Create account files and permission files

Reference: htpasswd-cm/etc/svn-auth-file work

Create an account file and the account is "work". Then, you will be prompted to enter the password. Here, a user is added and the svn-auth-file is created under/etc.
Reference: htpasswd-m/etc/svn-auth-file Username2
Htpasswd-m/etc/svn-auth-file Username3

Then, you can use the following command to add other users (or use it as a password change). If you really don't want these users, delete and recreate them, But modify svn-access-file accordingly):

Creates a svn-access-file, which is used to control the user's permission to access the repository.
Reference: # vi/etc/svn-access-file
[Doc:/] // indicates the access permission under the root directory of the Repository doc
Work = rw // doc repository the work user has read and write permissions, r is readable, W is writable
Username2 = r // doc repository Username2 users have read and write permissions
Username3 = r // doc repository Username3 users have read and write permissions
[Netbeans:/]
Work = rw
Username2 = r
Username3 = r
# [/] // This indicates that it is in the root directory of all warehouses
# * = R // This indicates that all users have the read permission.
# [Groups] // This indicates group settings
# Doc-developers = harry, sally // This indicates a member in a group
# Netbeans-developers = sally
# [Svn1:/]
# @ Doc-developers = rw // If the @ symbol is added to the front, this indicates that this is a group permission setting.

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.