1.install apache
sudo apt-get install apache2
2.install svn
sudo apt-get install subversion
3.install apache lib for svn
sudo apt-get install libapache2-svn
4.create svn repository
svnadmin create /path/to/repositoryName
5.create user
htpasswd -c /path/to/accounts/file yourName
6. setup permission
edit /path/to/repositoryName/conf/authz
#群組的設定
[groups]
admin = adm1
rd = rd1,rd2,yourName
#根目錄存取權限
[/]
@admin = rw
* =
#repositoryName 資源庫存取權限
[repositoryName:/]
@admin = rw # @admin 代表 群組admin
@rd = rw
* =
7.edit /etc/apache2/mods-enabled/dav_svn.conf
DAV svn
SVNParentPath /path/to/parent/directory/of/repositoryName
Satisfy Any
AuthType Basic
AuthName "SVN Repository"
AuthUserFile /path/to/accounts/file
AuthzSVNAccessFile /path/to/repositoryName/conf/authz
Require valid-user
8. restart apache
sudo service apache2 restart
9. visit to validate apache & svn
http://localhost/svn/repositoryName
10. install TRAC
sudo apt-get install python python-babel trac
sudo apt-get install sqlite3
11. upgrade python
sudo easy_install Bable
sudo easy_install Trac
12. make dir
sudo mkdir -p /var/local/trac
13. init env
trac-admin /var/local/trac initenv
14. test trac (standalone)
sudo tracd -p 8080 /var/local/trac
browse to http://localhost:8080
15. verify trac auth
sudo tracd -p 8080 --auth="trac,/path/to/accounts/file,yourName"
browse to http://localhost:8080, try login
16. intergrate with apache
to be continue...
---------------------------------------------------------------------------------
refer to:
http://thisismyeye.blogspot.com/2011/12/installing-and-configure-trac-on.html
沒有留言:
張貼留言