全部博文(150)
分类: 系统运维
2015-10-23 15:47:45
简单记录submin2的安装和配置
1、环境
os:centos7
apache:2.4.6
python:2.7
submin2:2.2.1
2、安装apache 等软件
yum install -y mod_dav_svn apr-util-sqlite apr-util
yum update httpd
yum install subversion
yum install -y subversion-python.x86_64
3、安装submin2
下载并安装
wget http://supermind.nl/submin/current/submin-2.2.1-1.tar.gz && tar xvfz submin-2.2.1-1.tar.gz && cd submin-2.2.1-1 && python2 setup.py install
初始化
submin2-admin /home/svn/submin initenv lihui@goluk.com
放置配置文件到httpd配置目录
1013 ln -s /home/svn/submin/conf/apache-2.4-svn.conf /etc/httpd/conf.d/
1015 ln -s /home/svn/submin/conf/apache-2.4-webui-cgi.conf /etc/httpd/conf.d/
诊断
submin2-admin /home/svn/submin diagnostics
关闭 git支持
submin2-admin /home/svn/submin config set vcs_plugins svn
修改 httpd相关配置
ServerNmae:
三个目录的对应关系如下
DocumentRoot: /home/svn
Location "/svndata"
SVNParentPath /home/svn/svndata
配置示例
ServerName good.goluk.cn
DocumentRoot "/home/svn"
#LimitRequestBody 102400000
LimitXMLRequestBody 0
LimitRequestBody 0
#SecRequestBodyAccess Off
# Nothing should work, so show a page describing this
AliasMatch "^/svn" /usr/lib/python2.7/site-packages/submin/static/www/nomodauthndbd.html
Require all granted
#LimitRequestBody 102400000
DAV svn
SVNParentPath /home/svn/svndata
AuthType Basic
AuthName "Subversion repository"
# Authentication
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT password FROM users WHERE name=%s"
# Authorization
AuthzSVNAccessFile /home/svn/submin/conf/authz
Satisfy Any
Require valid-user
目录权限设置
/svn 下面的目录读写权限要给apache用户