Edgewall Software

Changes between Version 12 and Version 13 of TracOnDebianSarge


Ignore:
Timestamp:
Nov 18, 2004, 8:28:46 PM (20 years ago)
Author:
Jonas Borgström
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • TracOnDebianSarge

    v12 v13  
    1 = Installing and Running Trac on Debian Sarge (testing) =
    2 
    3 == Notes from a Debian Sarge install ==
    4 
    5 A Debian package for Sarge does not exist, hence you need to build it yourself. This is actually quite straightforward.  Hopefully the following should be of some use.
    6 
    7 First you need the SQLite, Subversion and the related python modules (also grab python-dev if you don't have it installed already):
    8 
    9 {{{
    10 apt-get install sqlite python2.3-subversion python2.3-sqlite subversion
    11 }}}
    12 
    13 
    14 Clearsilver isn't available as a package, so get clearsilver from http://www.clearsilver.net/ (tested [http://www.clearsilver.net/downloads/clearsilver-0.9.10.tar.gz 0.9.10])
    15 (The symbolic link is needed to fix a bug in clearsilver 0.9.10)
    16 {{{
    17 tar xvfz clearsilver-0.9.10.tar.gz
    18 cd clearsilver-0.9.10
    19 ./configure --with-python=/usr/bin/python
    20 ln -s /usr/bin/python /usr/local/bin/python
    21 (or ln -s /usr/bin/python-2.3 /usr/local/bin/python)
    22 make
    23 make install
    24 }}}
    25 
    26 This should then allow you to build and initialise trac.
    27 
    28 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}}}'''
    29 
    30 {{{
    31 LoadModule env_module /usr/lib/apache/1.3/mod_env.so
    32 }}}
    33 
    34 I then set up a trac.conf in my '''{{{/etc/apache/conf.d}}}''' folder like so
    35 
    36 {{{
    37 <VirtualHost local.trac>
    38     alias /trac/ "/usr/share/trac/htdocs/"
    39     ServerAdmin youremail@yourdomain.tld
    40     DocumentRoot /var/trac/myTrac
    41     ServerName local.trac
    42     ErrorLog /var/trac/myTrac/logs/error.log
    43     CustomLog /var/trac/myTrac/logs/access_log common
    44     AddHandler cgi-script cgi
    45     <Location "/cgi-bin/trac.cgi">
    46       SetEnv TRAC_ENV "/var/trac/myTrac/tracdb/myenv"
    47       Options FollowSymLinks +ExecCGI
    48       AllowOverride None
    49     </Location>
    50 </VirtualHost>
    51 }}}
    52 Don't forget to create those log folders though (apachectl configtest doesn't warn you about that one)
    53 
    54 (Adapted and updated from an earlier guide by tim@pollenation.net)
     1See TracOnDebian.