trac インストールログ

trac インストールログ v1 2008/11/23


+ 参考サイト

+ 関連ソフトウェア
  • trac.noarch 0.11.2.1-1.el5.rf
  • svn, バージョン 1.5.4 (r33841)
  • Python2.4
  • apache2 (httpd 2.2.3-11.el5_2.centos.)
  • CentOS 5.2

Creating a new Trac environment at /var/trac/sandbox

Trac will first ask a few questions about your environment
in order to initialize and prepare the project database.

 Please enter the name of your project.
 This name will be used in page titles and descriptions.

Project Name [My Project]> Sandbox

 Please specify the connection string for the database to use.
 By default, a local SQLite database is created in the environment
 directory. It is also possible to use an already existing
 PostgreSQL database (check the Trac documentation for the exact
 connection string syntax).

Database connection string [sqlite:db/trac.db]>

 Please specify the type of version control system,
 By default, it will be svn.

 If you don't want to use Trac with version control integration,
 choose the default here and don't specify a repository directory.
 in the next question.

Repository type [svn]>

 Please specify the absolute path to the version control
 repository, or leave it blank to use Trac without a repository.
 You can also set the repository location later.

Path to repository [/path/to/repos]> /var/svn/sandbox

Creating and Initializing Project
 Installing default wiki pages
 SandBox imported from /usr/lib/python2.4/site-packages/trac/wiki/default-pages/SandBox
 ・・・(略)・・・
 TracWorkflow imported from /usr/lib/python2.4/site-packages/trac/wiki/default-pages/TracWorkflow
 Indexing repository

---------------------------------------------------------------------
Project environment for 'Sandbox' created.

You may now configure the environment by editing the file:

  /var/trac/sandbox/conf/trac.ini

If you'd like to take this new project environment for a test drive,
try running the Trac standalone web server `tracd`:

  tracd --port 8000 /var/trac/sandbox

Then point your browser to http://localhost:8000/sandbox.
There you can also browse the documentation for your installed
version of Trac, including information on further setup (such as
deploying Trac to a real web server).

The latest documentation can also always be found on the project
website:

  http://trac.edgewall.org/

Congratulations!

  • # chown -R root.web sandbox
  • # chmod -R g+w sandbox
  • # vim /etc/httpd/vconf.d/trac.localhost.conf
<VirtualHost *:80>
    ServerName  trac.localhost
    ErrorLog    logs/trac.localhost-error_log
    CustomLog   logs/trac.localhost-access_log common

    DocumentRoot /var/trac
    <Location />
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        PythonOption TracUriRoot "/"
        PythonOption TracEnvParentDir /var/trac

        AuthType Basic
        AuthName "Trac"
        AuthUserFile /var/svn/.htpasswd
        Require valid-user
    </Location>
</VirtualHost>
http://trac.localhost/sandbox/wiki を開いてトップページの最初に以下を追加
[[TracNavi()]]
# svn export http://trac-hacks.org/svn/accountmanagerplugin/trunk/
# cd trunk
# python setup.py install
# vim /var/trac/sandbox/conf/trac.conf
[account-manager]
password_format = htpasswd
password_file = /var/svn/.htpasswd
# svn export http://trac-hacks.org/svn/iniadminplugin/0.11/
# cd 0.11
# python setup.py install
# svn export http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/ganttcalendarplugin/trunk
# cd trunk
# python setup.py install
# vim /var/trac/sandbox/conf/trac.conf
[ticket-custom]
due_assign = text
due_assign.label = 開始日
due_assign.order = 1

due_close= text
due_close.label = 終了日
due_close.order = 2

complete= text
complete.label = 進捗率(%)
complete.order = 3
# vim /usr/lib/python2.4/site-packages/sitecustomze.py
# これやっとかないとtracganttではまる
import sys
sys.setdefaultencoding('UTF-8')
# service httpd restart
最終更新:2008年11月26日 01:02