文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>trac 搭建

trac 搭建

时间:2010-08-03  来源:liukaiyi


参考:
  http://q.sohu.com/topic/4393985


# 当然 下面 选择  easy_install  egg 或 python setup.py install
# 个人喜好 ,今天 墙的 我好郁闷 啊~ easy_install  时好时坏 .....

1. 安装准备
wget http://www.sqlite.org/sqlite-3.7.0.tar.gz
> 编译


easy_install PySQLite
easy_install Babel
easy_install psycopg2

wget http://ftp.edgewall.com/pub/trac/Trac-0.12.tar.gz
python setup.py install



#wiki 所见即所得
svn co http://trac-hacks.org/svn/tracwysiwygplugin/0.12/
cd 0.12
python setup.py install

# 页面 登入
easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
easy_install -Z -U http://trac-hacks.org/svn/xmlrpcplugin/trunk


wget http://ftp.edgewall.com/pub/genshi/Genshi-0.6-py2.6.egg
easy_install Genshi-0.6-py2.6.egg




1. 创建 trac
trac-admin /path/to/projectenv initenv
vim /path/to/projectenv/conf/trac.ini


htpasswd -c  /path/to/projectenv/passwd.txt admin
admin1234


trac-admin  /path/to/projectenv  permission add admin TRAC_ADMIN



新增组件的支持  :
/path/to/projectenv/conf/trac.ini 最后加上

[components]
trac.web.auth.LoginModule = disabled
acct_mgr.web_ui.LoginModule = enabled
acct_mgr.web_ui.RegistrationModule = disabled
acct_mgr.htfile.HtPasswdStore = enabled
tracwysiwyg.* = enabled

[account-manager]
; configure the plugin to store passwords in the htdigest format:
password_store = HtPasswdStore
; with Trac < 0.10 use this instead:
password_format = htpasswd

; the file where user accounts are stored
; the webserver will need write permissions to this file
; and its parent folder
password_file = /path/to/projectenv/passwd.txt

; the name of the authentication “realm”
; it can be any text to identify your site or project
;htdigest_realm = TracRealm




启动 :
   tracd --port 8000   /path/to/projectenv

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载