Trac setup

13 01 2008

Make sure apache, python, mod_python, subversion, sqlite, clearsilver, & clearsilver-python are installed and working first.

Trac uses the swig bindings installed with Subversion, not pysvn.

– install setuptools for genshi and pygments (needed for 0.11, not for 0.10)

# wget http://peak.telecommunity.com/dist/ez_setup.py
# python ez_setup.py
# easy_install genshi
# easy_install pygments

# easy_install docutis

– optionally install silvercity for syntax highlighting

# wget http://ufpr.dl.sourceforge.net/sourceforge/silvercity/SilverCity-0.9.7.tar.gz
# tar -xvzf SilverCity-0.9.7.tar.gz
# python setup.py install

– Download, unzip, install trac:

# wget ftp://ftp.edgewall.com/pub/trac/trac-0.10.4.tar.gz
# tar -xvzf trac-0.10.4.tar.gz
# python ./setup.py install

— Create a project:

# trac-admin /var/www/trac-site initenv

– edit trac.ini (no changes yet)

– test with build in server

# tracd –port 8000 /var/www/trac-site

– configure apache to point to trac site
<Location /trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/www//trac-site
PythonOption TracUriRoot /trac
</Location>

The trac documentation is actually pretty good and this closely follows it.

http://trac.edgewall.org/wiki/0.10/TracInstall
http://trac.edgewall.org/wiki/TracModPython

I did have some trouble with getting python and subversion working together on windows, however (that may have had to do with python-2.4, I don’t think I tried downgrading to 2.3, and It might have had trouble with newer Apache 2.2.4)

And fast-cgi isn’t an option on windows.


Actions

Information

Leave a comment