読者です 読者をやめる 読者になる 読者になる

忍び歩く男 - SLYWALKER

大阪のこっそりPHPer

Ubuntu Server Trac インストールメモ

Trac Ubuntu

rootで

# apt-get install unzip python-setuptools libapache2-mod-python python-subversion python-sqlite
# cd /usr/local/src
# wget http://www.i-act.co.jp/project/products/downloads/Trac-0.11.1.ja1.zip
# unzip Trac-0.11.1.ja1.zip
# cd Trac-0.11.1.ja1
# python setup.py build
# python setup.py install
# cd ~
# trac-admin /var/trac/project initenv

Project Name [My Project]> {プロジェクト名}
Database connection string [sqlite:db/trac.db]> {Enter}
Repository type [svn]> {Enter}
Path to repository [/path/to/repos]> /var/svn/repos

# chown -R www-data:www-data /var/trac

# trac-admin /var/trac/project permission remove anonymous  REPORT_DELETE WIKI_CREATE WIKI_MODIFY REPORT_SQL_VIEW TICKET_APPEND TICKET_CHGPROP TICKET_CREATE TICKET_MODIFY

# trac-admin /var/trac/project permission add hoge BROWSER_VIEW CHANGESET_VIEW CONFIG_VIEW FILE_VIEW LOG_VIEW MILESTONE_ADMIN MILESTONE_CREATE MILESTONE_DELETE MILESTONE_MODIFY MILESTONE_VIEW REPORT_ADMIN REPORT_CREATE REPORT_DELETE REPORT_MODIFY REPORT_SQL_VIEW REPORT_VIEW ROADMAP_ADMIN ROADMAP_VIEW SEARCH_VIEW TICKET_ADMIN TICKET_APPEND TICKET_CHGPROP TICKET_CREATE TICKET_MODIFY TICKET_VIEW TIMELINE_VIEW TRAC_ADMIN WIKI_ADMIN WIKI_CREATE WIKI_DELETE WIKI_MODIFY WIKI_VIEW

# htpasswd -c /var/trac/.htpasswd hoge
# vim /etc/apache2/conf.d/trac.conf
<Location /trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnvParentDir /var/trac/
   #PythonOption TracUriRoot /trac

   SetEnv PYTHON_EGG_CACHE /var/trac/.egg-cache
</Location>

<locationMatch "/[[:alnum:]]+/login">
   AuthType Basic
   AuthName "trac"
   AuthUserFile /var/trac/.htpasswd
   Require valid-user
</locationMatch>
# /etc/init.d/apache2 restart

ん〜プロジェクト一覧に

.egg-cache: Error
([Errno 2] No such file or directory: '/var/trac/.egg-cache/VERSION')

と出てしまう。何でだろう?