Edgewall Software

Version 4 (modified by anonymous, 16 years ago) ( diff )

Installing and Running Trac on Debian

# apt-get install python2.3-subversion python2.3-sqlite

Trac is not packaged, follow the source install

Notes from a debian sarge install

Get clearsilver from http://www.clearsilver.net/

  • tar xvfz clearsilver-0.9.8.tar.gz
  • cd clearsilver-0.9.8
  • ./configure
  • make
  • make install
  • cd python/
  • ln -s /usr/bin/python2.3 /usr/bin/python
  • make
  • make install

Everything else should be OK apart from the fact that you will have to get a subversion from unstable (don't worry, unstable for debian is like normal redhat)

  • apt-get -t unstable install subversion

This should then allow you to build and initialise trac.

When you come to running it though you'll also have to add the env_module using the following line in your /etc/apache/modules.conf

  • LoadModule env_module /usr/lib/apache/1.3/mod_env.so

I then set up a trac.conf in my /etc/apache/conf.d folder like so

<V'irtualHost local.trac>

alias /trac/ "/usr/share/trac/htdocs/" ServerAdmin youremail@… DocumentRoot /home/tim/myTrac ServerName local.trac ErrorLog /home/tim/myTrac/logs/error.log CustomLog /home/tim/myTrac/logs/access_log common AddHandler cgi-script cgi <Location "/cgi-bin/trac.cgi">

SetEnv TRAC_DB "/home/tim/myTrac/tracdb/mydb" Options F'ollowSymLinks +ExecCGI A'llowOverride None



Don't forget to create those log folders though (apachectl configtest doesn't warn you about that one)

Note: See TracWiki for help on using the wiki.