trac インストールログ


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

+ 参考サイト

+ 関連ソフトウェア

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:


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


  • # 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
http://trac.localhost/sandbox/wiki を開いてトップページの最初に以下を追加
# svn export
# cd trunk
# python install
# vim /var/trac/sandbox/conf/trac.conf
password_format = htpasswd
password_file = /var/svn/.htpasswd
# svn export
# cd 0.11
# python install
# svn export
# cd trunk
# python install
# vim /var/trac/sandbox/conf/trac.conf
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/
# これやっとかないとtracganttではまる
import sys
# service httpd restart