Svn+http Installation

Source: Internet
Author: User


1. Check if the package exists


Rmp-qa | grep http

Rmp-qa |grep Subversion

Rpm-qa |grep MOD_DAV_SVN


2. Install the required software

Yum install-y httpd Subversion mod_dav_svn


3. Create SVN directory

MKDIR/SVN-----Create an SVN directory

Svnadmin Create test----creates an SVN repository named tes


4. Modify the subversion.conf configuration


#加载subversion模块

LoadModule Dav_svn_module modules/mod_dav_svn.so

LoadModule Authz_svn_module modules/mod_authz_svn.so

<Location/svn>

DAV SVN

#SVNListParentPath on

SVNPARENTPATH/SVN #svn存放的目录

AuthType Basic

AuthName "Authorization Realm"

AUTHUSERFILE/ETC/SVN/SVN.PASSWD #svn的访问密码

Authzsvnaccessfile/etc/svn/svn.access #svn的用户目录访问权限文件

Require Valid-user #允许使用账号密码请求

#SVNAutoversioning on

#ModMimeUsePathInfo on

</Location>


5. Modify SVN to manage with Apache


Cd/svn

Chown apache:apache-r Test #授权test为Apache目录浏览

chmod 755 Test



6. Create an account password using the Apache htpasswd command

Mkdir/etc/svn

HTPASSWD-CM/ETC/SVN/SVN.PASSWD ZZX

Enter Password two times


7. Configure permissions to create accounts

Touch/etc/svn/svn.access #svn的访问目录权限


Vi/etc/svn/svn.access


[Groups]

Testgroup = Tianshi

NewGroup = Test1,test2

[/]

@Newgroup = R


[test:/] #test文件组权限设置 RW Read and Write permissions

ZZX = RW

@Testgroup = R


[Test:/tianshi]

Tianshi = RW


8. Restart httpd, Svnserve service

Service httpd Start

Svnserve-d-r/svn/test/


9. Turn off SELinux

Temporary shutdown Setenforce 0


10. Restart the server

Init 6



Svn+http Installation

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.