flagflag  
1: 2013-05-30 (Thu) 21:34:23 iseki source Cur: 2013-05-30 (Thu) 23:22:28 iseki source
Line 1: Line 1:
** Trac [#tcbbca5b] ** Trac [#tcbbca5b]
- python で動くプロジェクト管理ツール. - python で動くプロジェクト管理ツール.
 +
 +- http://trac.edgewall.org/
 +- http://www.i-act.co.jp/project/products/​products.html
 +
 +- アカウントの自己登録ができない.... 使えん!
 +#br
 +
 +*** Install [#u69fd0d2]
 +- CentOS (最新版をインストールするために python のeasy_install を使う )
 +
 + # yum install MySQL-python
 + # easy_install genshi      Web用アウトプットツール
 + # easy_install babel      国際化ツール
 + # easy_install http://www.i-act.co.jp/project/products/​downloads/Trac-1.0.ja1.zip
 + # trac-admin              チェック
 +
 +*** Setup [#ceee9182]
 + # mysql -u root -p
 + mysql> create database trac_db default character set utf8 collate utf8_general_ci;
 + mysql> grant all on trac_db.* to TRUser identified by 'XXXXX';
 + mysql> quit
 + # mkdir /home/trac
 + # trac-admin /home/trac/jog initenv
 + ...
 + データベース接続文字列 [sqlite:db/trac.db]> mysql://TRUser:XXXXX@localhost/trac_db
 + ...
 +*** 起動 [#p56ddcb0]
 + # tracd --port 9000 /home/trac/jog
 +#br
 +*** Apache 連携 [#m5d8440a]
 +- mod_wsgi (Web Server Gateway Interface) Python をApache で動作させるためのモジュール
 + yum install mod_wsgi
 +- /etc/httpd/conf.d/wsgi.conf
 + LoadModule wsgi_module modules/mod_wsgi.so
 + 
 + WSGIScriptAlias /trac /home/trac/trac.wsgi
 + 
 + <Directory /home/trac>
 +   WSGIApplicationGroup %{GLOBAL}
 +   Order deny,allow
 +   Allow from all
 + </Directory>
 +
 +- /etc/httpd/conf.d/wsgi.conf
 + import os
 + 
 + os.environ['TRAC_ENV'] = '/home/trac/jog'
 + os.environ['PYTHON_EGG_CACHE'] = '/home/trac/jog/eggs'
 + 
 + import site
 + site.addsitedir('/usr/lib/python2.6/sit​e-packages/Trac-1.0.ja1-py2.6.egg')
 + 
 + import trac.web.main
 + application = trac.web.main.dispatch_request
 +**** パーミッションの設定 [#z9b85985]
 +- /etc/httpd/conf.d/wsgi.conf
 +- /home/trac/jog
 +-- /home/trac/jog/conf, /home/trac/jog/conf/* は apache から書き込み可にする
 +- /usr/lib/python2.6/site-packages/Trac-1.​0.ja1-py2.6.egg
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthAug 2025Next Month
Su Mo Tu We Th Fr Sa
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Today

Access Counter

Today : 2551255125512551
Yesterday : 7039703970397039
Total : 2826954128269541282695412826954128269541282695412826954128269541
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com