多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
# Submin安装配置 ## 1. 安装环境 * 系统:RedHat6及以上/CentOS6及以上 * Apache:2.2以上,2.4以下 * Subversion:1.6.11以上 * Python:2.6以上 ## 2. 安装Submin * 下载Submin [http://supermind.nl/submin/download.html](http://supermind.nl/submin/download.html) 解压到 /opt 目录 * 安装Submin ``` python2 setup.py install ``` ## 3. 初始化Submin配置 ``` submin2-admin /var/lib/submin initenv your@email.address ``` **配置过程:** > Which features do you want to enable? [svn, git, apache, nginx]> 直接回车 > Path to the repository? [svn]> `/home/svndata` > Path to the git repositories? [git]> 直接回车 > Hostname? [master.oftenfull.com]> `svn.oftenfull.com` (注意:此域名需要可正常访问当前服务器) > HTTP base? [/]> 直接回车 > Email from envelope? [Submin <root@master.oftenfull.com>]> `Submin <root@svn.oftenfull.com>` ## 4. 配置Apache ``` ln -s /var/lib/submin/conf/apache-webui-cgi.conf /etc/httpd/conf.d/ ln -s /var/lib/submin/conf/apache-svn.conf /etc/httpd/conf.d/ ``` Apache module 'dav_svn' & Apache module 'dav'支持: ``` yum install mod_dav_svn ``` Apache module 'dbd'支持: ``` yum install libdbi-dbd-sqlite yum install apr-util-sqlite ``` 在/etc/httpd/conf/httpd.conf中添加加载模块设置 ``` LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule dbd_module modules/mod_dbd.so LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so ``` 屏蔽Apache的svn默认配置文件(/etc/httpd/conf.d/subversion.conf)中的所有设置 重启apache ## 5. 其他配置 * 修改svn数据目录权限,以支持Submin访问管理 ``` chmod -R +rx /home/svndata ``` 另外,如果删除项目资源失败,也是文件权限的问题 * 重置密码邮件的模板修改 ``` /usr/lib/python2.6/site-packages/submin/static/templates/email/prepare_reset.txt ``` * 修改默认的发送邮件帐号 ```shell submin2-admin /var/lib/submin config set smtp_from mailaccount submin2-admin /var/lib/submin config set smtp_hostname smtp.exmail.qq.com submin2-admin /var/lib/submin config set smtp_username mailaccount submin2-admin /var/lib/submin config set smtp_password mailpassword ```