trac-admin [path] initenv
默认DB为:sqlite, 不用单独配置
chcon -R -t httpd_user_content_t [path]
chmod -R 777 [path]
[b]
Trac 启动:[/b]
tracd -p 8000 -d --basic-auth=blc,/etc/trac/auth.conf,/var/www/trac/projects/blc/ /var/www/trac/projects/blc/
Trac 导出:
trac-admin /path/to/env wiki dump /usr/local/***
trac的header logo配置:
[color=red]trac.ini中的head_logo: site/your_project.png. site对应的就是htdocs。[/color],它的显示路径为:project/chrome/site, 很诡异。
-------------------------------------------------------------
集成Apache With Wsgi(Prefered):
1. 下载Module:mod_wsgi****.so至 [apache]/modules
2. trac-admin /path/to/env deploy /tmp
3. cp /tmp/* /path/to/env
4. config httpd.conf:
---------------------------------------------------------
[b]强大的trac-admin[/b]:
trac-admin /path/to/env
command: component list/add.. version list/add ticket_type list/add.
默认DB为:sqlite, 不用单独配置
chcon -R -t httpd_user_content_t [path]
chmod -R 777 [path]
[b]
Trac 启动:[/b]
tracd -p 8000 -d --basic-auth=blc,/etc/trac/auth.conf,/var/www/trac/projects/blc/ /var/www/trac/projects/blc/
Trac 导出:
trac-admin /path/to/env wiki dump /usr/local/***
trac的header logo配置:
[color=red]trac.ini中的head_logo: site/your_project.png. site对应的就是htdocs。[/color],它的显示路径为:project/chrome/site, 很诡异。
-------------------------------------------------------------
集成Apache With Wsgi(Prefered):
1. 下载Module:mod_wsgi****.so至 [apache]/modules
2. trac-admin /path/to/env deploy /tmp
3. cp /tmp/* /path/to/env
4. config httpd.conf:
LoadModule wsgi_module modules/mod_wsgi.so
//将/trac加入到访问路径
WSGIScriptAlias /trac /path/to/env/cgi-bin/trac.wsgi
<Directory /path/to/env/cgi-bin>
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /somewhere/trac.htpasswd
Require valid-user
</Location>
---------------------------------------------------------
[b]强大的trac-admin[/b]:
trac-admin /path/to/env
command: component list/add.. version list/add ticket_type list/add.