install trac with typical configuration on fedora core4

本文详细介绍了如何安装和配置Trac,包括下载Trac、安装mod_python、使用Python进行安装、创建项目环境、设置Apache服务器、权限管理等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Write by wei on 2006-12-13

原文见:

http://bbs.he566.com/viewtopic.php?t=243

(for detail,please refer to http://trac.edgewall.org/wiki/TracGuide)

1.install steps:
1.1. download trac from
http://trac.edgewall.org/wiki/TracDownload
(i used trac-0.10.2.zip)
1.2. install mod_python

代码:
$ yum install mod_python.i386

1.3. install trac
(detail to refer to http://trac.edgewall.org/wiki/TracInstall)
extract zip file
then cd .../trac../
代码:
$ python ./setup.py install


1.4 .Creating a Project Environment
代码:
$ trac-admin /path/to/myproject initenv


1.5. Running the Standalone Server to test installation
代码:
$ tracd --port 8000 /path/to/myproject


1.6. set trac on apache with mod_python
recommend use mod_python model, because the cgi mod is very slow on my test.
add following code into httpd.conf

代码:
LoadModule python_module modules/mod_python.so
#config trac in apache
<Location /projects/test_trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv /trac/test_trac
   PythonOption TracUriRoot /projects/test_trac
</Location>
<Location "/projects/test_trac/login">
  AuthType Basic
  AuthName "test trac"
  AuthUserFile /usr/local/apache2/conf/svn-auth-file
  Require valid-user
</Location>


restart apache, view http://localhost/projects/test to test your configuration.
(details to refer to http://trac.edgewall.org/wiki/TracModPython)

1.7. use trac-admin to set permission
as default, the anonymous has more permission.
代码:
$ trac-admin /path/to/projenv permission add admin TRAC_ADMIN # grant all priviledge to admin group
$ trac-admin /path/to/projenv permission add testuser admin
# grant permission to testuser with group admin
$ trac-admin /path/to/projenv permission list anonymous # view anonymous permission
$ trac-admin /path/to/projenv permission remove anonymous [action].... [action] # remove all permision for anonymous

as document said, use "$ trac-admin /path/to/projenv permission remove anonymous *" can remove all permission. but i can't remove all. I don't know why.

(for details to refer to http://trac.edgewall.org/wiki/TracPermissions)

That's all

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值