2008/06/09

WMU-6500FS - Trac 0.11rc1





Build results: No deployment needed (installation is performed directly to the box).

Dependencies: subversion, python, apache & mod_python, SQLite

Info sources: [Trac installation guide] [Subversion-Trac howto] [Trac & ModPython]

setuptools

box# cd /mnt/C
box# wget http://peak.telecommunity.com/dist/ez_setup.py
box# python ez_setup.py

Genshi

box# python /mnt/C/sys/bin/easy_install --prefix=/mnt/C/sys Genshi

Trac

box# python /mnt/C/sys/bin/easy_install --prefix=/mnt/C/sys Trac
Prepare project
box# mkdir /mnt/C/sys/var/trac
box# mkdir /mnt/C/sys/var/trac/<project>
box# trac-admin /mnt/C/sys/var/trac/<project> initenv
... and fill in all project info (point it to project's subversion erpository e.g. /mnt/C/sys/var/svn/<project> etc.)

Test standalone trac http daemon
box# tracd --port 8000 /mnt/C/sys/var/trac/<project>
box# lynx http://localhost:8000
Administration
Edit apache configuration
box# nano /mnt/C/sys/apache2/conf/httpd.conf
Add following:
<Location /projects/<project>>
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv /mnt/C/sys/var/trac/<project>
  PythonOption TracUriRoot /projects/<project>
</Location>

<Location /projects/<project>/login>
  AuthType Basic
  AuthName "<project>"
  AuthUserFile /mnt/C/sys/var/trac/<project>/.htpasswd
  Require valid-user
</Location>
Create password file
box# htpasswd -c /mnt/C/sys/var/trac/<project>/.htpasswd <user>
box# trac-admin /mnt/C/sys/var/trac/<project> permission add admin TRAC_ADMIN
Initialize web administration
box# nano /mnt/C/sys/var/trac/<project>/conf/trac.ini
Add following:
[components]
webadmin.* = enabled

No comments: