svn/trac/apache服务设置 - 悲催的科学匠人 - 冷水's blog

svn/trac/apache服务设置

冷水 posted @ 2014年6月05日 19:57 in linux with tags apache svn trac , 2015 阅读

我照着如下网页搞的,还很顺利

http://www.subversionary.org/howto/setting-up-a-subversion-server-on-ubuntu-gutsy-gibbon-server

 

如果像我一样需要创建多个项目

那只需要:

1  创建 svn库,我这里名字是write

sudo svnadmin create /var/svn/write
 
或者拷贝一个已经有的库目录
注意要强制设置目录归属
sudo chown -R svn.svn svn
 
2 为svn添加http访问
 
$ vim /etc/apache2/sites-enabled/000-default
添加类似如下片段
    <Location /svn/write>
      DAV svn
      SVNPath /var/svn/write
      AuthType Basic
      AuthName "Subversion Repository"
      AuthUserFile /etc/apache2/passwords
      Require valid-user
    </Location>
 
 
3 为svn添加trac项目
 
$ sudo trac-admin /var/www/trac/write initenv
填填trac的名称,还是用write
 
$ sudo vim trac/write/conf/trac.ini
找到 repository_dir 设置好对应的svn路径
repository_dir = /var/svn/write
 
注意再次设置目录归属
$ sudo chown -R www-data.svn trac
 
4 最后重启apache
$ sudo /etc/init.d/apache2 force-reload 
 

可以看到trac页面下就多了一个新项目

  • 无匹配
Avatar_small
DPE Result Chittagon 说:
2022年9月04日 00:20

In order, Bangladesh All Education Board Chittagong Division also successfully completed the class 5th Grade term exams 2022 under Directorate of Primary Education (DPE), this Chittagong PSC Exams also held on November 2022 at all selected centers under DPE, and they have also going to announce PSC Result 2022 Chittagong Board with Full Marksheet along with DPE Result 2022 Download. DPE Result Chittagong According to the reports announced by DPE, there is a huge number of students have participated under the Chittagong division and they are also waiting to check Prathomik Somaponi Result 2022 along with a full mark sheet of the exams with subject-wise total marks. every year the Directorate of Primary Education (DPE) has announced the Primary Certificate Exam result and this year also announced the same.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee