Warning: Division by zero in /.2/vhosts/www.cabbycentral.com/html/nonsense.php on line 333

Warning: Division by zero in /.2/vhosts/www.cabbycentral.com/html/nonsense.php on line 335
Trac setup
QA Site
A blog by spikef2163i5 RSS Feed - Newest 10 Posts Add To Favourites

Trac setup
Posted on 2008-09-14 by spikef2163i5

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

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

– install setuptools on behalf of genshi as well as pygments (needed on behalf of 0.11, not on behalf of 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 on behalf of 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 as well as 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 as well as subversion working combined on windows, however (that may have had to do with python-2.4, I don’t think I tried downgrading to 2.3, as well as It might have had trouble with newer Apache 2.2.4)

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

feed | tags: uncategorized


del.icio.us digg Fark YahooMyWeb Reddit Furl NewsVine Spurl BlinkList blogmarks

<<< Back