tracのインストール
必要なもの
- trac-ja
- SubVersion 1.4.3
- svn-win32-1.4.3_py2.4.exe, svn-1.4.3-setup.exe
- http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
- http://subversion.tigris.org/
- Python 2.4
- Active Python
- http://www.activestate.com/
- Pysqlite
- pysqlite-2.3.3.win32-py2.4.exe
- http://initd.org/tracker/pysqlite/wiki/pysqlite
- ClearSilver
- clearsilver-0.9.14.win32-py2.4.exe
- http://www.clearsilver.net/downloads/
- Setuptool
- DocUtils
- SilverCity
インストール
- Pythonのインストール
- SubVersionのインストール
- Pysqliteのインストール
- ClearSilverのインストール
- DocUtilsのインストール(setup.py install)
- SilverCityのインストール
- trac-jaのインストール(setup.py install)
- easy installをダウンロードして実行(サーバにつながりにくい)
プラグインのインストール
- TracWebAdmin
- TracWebAdmin-0.1.2dev_r4240-py2.4.egg.zip を eggに変更して、python24\Lib\site-packagesにおいておく
- http://trac.edgewall.org/attachment/wiki/WebAdmin
- trac.ini
[components] webadmin.* = enabled
- AccountManagerPlugin
- easy_install http://trac-hacks.org/svn/accountmanagerplugin/0.10
- http://trac-hacks.org/wiki/AccountManagerPlugin
- trac.ini
[account-manager] password_file = D:\Repository\trac\trac.htpasswd password_format = htpasswd password_store = HtPasswdStore
- ログインしてプラグインの設定を有効にする
- WebAdminUsersPlugin
- zipファイルをダウンロードして展開して、setup.pyファイルの下記の2行を削除してインストールする。
import ez_setupez_setup.use_setuptools() install
- http://trac-hacks.org/wiki/WebAdminUsersPlugin
- zipファイルをダウンロードして展開して、setup.pyファイルの下記の2行を削除してインストールする。
SubVersionのRepository作成
- svnadmin create フォルダ名
trac のインストール
- trac-admin /path/to/trac_project_env initenv
mod_pythonの設定
- http://tach.arege.net/trac/wiki/TracModPython
- httpd.conf
LoadModule python_module modules/mod_python.so <Location /project> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir D:\Repository\trac PythonOption TracUriRoot /project </Location>
<LocationMatch "/[^/]+/login"> AuthType Basic AuthName "Trac" AuthUserFile D:\Repository\trac\trac.htpasswd Require valid-user </LocationMatch>
trac のユーザの設定
- 新規作成
htpasswd -c D:\Repository\trac\trac.htpasswd xxx
- 追加
htpasswd D:\Repository\trac\trac.htpasswd xxx