Install and configure a ready for use subversion based on fedora

1.install subversion.
    yum install subversion

2.install httpd.
     yum install httpd

3.install web modules.
    yum install mod_dav_svn

4.create the target dir.
    mkdir -p /opt/svn/repos

5.change the owner and group.
    chown -R apache:apache /opt/svn/repos/

6.create the repo you need.
    svnadmin create /opt/svn/repos/docs
    svnadmin create /opt/svn/repos/elegantiz

7.create the apache2 configration file for subversion
    vim /etc/httpd/conf.d/subversion.conf
    #add content blow:
     LoadModule dav_svn_module modules/mod_dav_svn.so
    LoadModule authz_svn_module modules/mod_authz_svn.so
    <Location /repos>
    DAV svn
    SVNParentPath /opt/svn/repos/
    #
    # # Limit write permission to list of valid users.
    # <limitexcept>
    # # 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
    # </limitexcept>
    </Location>


8.create and add some user to svn-auth-file.   
    htpasswd -cm /etc/svn-auth-file user_a
    htpasswd -m /etc/svn-auth-file user_b

9.grant the permission to the user.
     vi /etc/svn-access-file 
    #add content blow:
    [docs:/]
    user_a=rw
    user_b=r
    [elegantiz:/]
    user_a=rw
    user_b=r

10.get ready to use.
  /etc/init.d/httpd restart

转载于:https://www.cnblogs.com/haria/archive/2011/04/05/install_config_subversion_fedora.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值