Edgewall Software

Changes between Version 44 and Version 45 of TracOnDebian


Ignore:
Timestamp:
Dec 30, 2004, 9:15:28 PM (15 years ago)
Author:
bryan@…
Comment:

Note about needing python 2.2.2 for notifications; other small changes

Legend:

Unmodified
Added
Removed
Modified
  • TracOnDebian

    v44 v45  
    3030
    3131'''Note:''' While installing Trac on Debian Woody you might get some harmless warnings when the installation process byte-compiles some source files.
    32 
     32----
    3333'''More notes for Trac 0.8 on Debian Woody:'''
    3434
     
    4646  Also, edit /etc/default/apache2 so it says {{{NO_START=0}}} if you want apache2 to run on boot.
    4747
    48  * Trac 0.8 runs better with Python 2.2 and python-xml (without them, diffs and attachment uploading may not work):
     48 * Trac 0.8 runs better with Python 2.2 and python-xml (without them, diffs and attachment uploading ''will not'' work). '''Note''' that Trac's email notifications will not work unless you have Python 2.2.2 or greater. Since I couldn't find a Debian/stable .deb for anything higher than Python 2.2.1, I gave up on email notifications. Everything else seems to be workng though!
    4949{{{
    5050apt-get install python2.2-xmlbase python2.2-sqlite
     
    9898   I put my trac environment at /var/trac/project. I'm not using the mod_python extentions at the moment. First I ran
    9999{{{
    100 trac-admin /var/trac/project initenv  (will prompt you for several things and print lots of output)
     100trac-admin /var/trac/project initenv
    101101}}}
    102    Then I edited /etc/apache2/sites-available/default. I commented out the existing {{{ScriptAlias}}} and  {{{<Directory "/usr/lib/cgi-bin">}}} directives, and added this at the end:
     102   The command above prompted me to enter the project name, the path to the trac environment, and the path to the Trac templates directory; then it printed out a bunch of stuff.
     103
     104   Next, I edited /etc/apache2/sites-available/default. I commented out the existing {{{ScriptAlias}}} and  {{{<Directory "/usr/lib/cgi-bin">}}} directives, and added this at the end:
    103105{{{
    104106Alias /trac "/usr/share/trac/htdocs"
     
    123125</Location>
    124126}}}
    125   Now to fix the permissions, add a couple of users, and restart Apache:
     127   Now to fix the permissions, add a couple of users, and restart Apache:
    126128{{{
    127129cd /var/www
     
    130132apache2 -k restart
    131133}}}
    132   Finally, test by going to !http://servername.foo.com/cgi-bin/trac.cgi
     134   Finally, test by going to !http://servername.foo.com/cgi-bin/trac.cgi
    133135
    134   On my installation, I do get some errors ("Python C API version mismatch for module ''blah''") when I run trac-admin at the commandline. This is probably because I didn't upgrade to Python2.2 until ''after'' I installed Trac. Hopefully these errors will be avoided by upgradng Python first, but in any case they don't seem to hurt Trac at all. Everything works perfectly! ''bryan@lockwoods.us''
    135 
    136 
     136On my installation, I do get some errors ("Python C API version mismatch for module ''blah''") when I run trac-admin at the commandline. Apache also logs similar errors. This is probably because I didn't upgrade to Python2.2 until ''after'' I installed Trac. Hopefully these errors will be avoided by upgradng Python first (as I have advised above), but in any case they don't seem to hurt Trac at all. Everything (except email notifications which I don't need anyway) works perfectly!
     137----
    137138Furthermore, there is a guide on building the Debian Trac package from the trunk at TracOnDebianFromTrunk