Changes between Version 44 and Version 45 of TracOnDebian
- Timestamp:
- Dec 30, 2004, 9:15:28 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnDebian
v44 v45 30 30 31 31 '''Note:''' While installing Trac on Debian Woody you might get some harmless warnings when the installation process byte-compiles some source files. 32 32 ---- 33 33 '''More notes for Trac 0.8 on Debian Woody:''' 34 34 … … 46 46 Also, edit /etc/default/apache2 so it says {{{NO_START=0}}} if you want apache2 to run on boot. 47 47 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! 49 49 {{{ 50 50 apt-get install python2.2-xmlbase python2.2-sqlite … … 98 98 I put my trac environment at /var/trac/project. I'm not using the mod_python extentions at the moment. First I ran 99 99 {{{ 100 trac-admin /var/trac/project initenv (will prompt you for several things and print lots of output)100 trac-admin /var/trac/project initenv 101 101 }}} 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: 103 105 {{{ 104 106 Alias /trac "/usr/share/trac/htdocs" … … 123 125 </Location> 124 126 }}} 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: 126 128 {{{ 127 129 cd /var/www … … 130 132 apache2 -k restart 131 133 }}} 132 Finally, test by going to !http://servername.foo.com/cgi-bin/trac.cgi134 Finally, test by going to !http://servername.foo.com/cgi-bin/trac.cgi 133 135 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 136 On 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 ---- 137 138 Furthermore, there is a guide on building the Debian Trac package from the trunk at TracOnDebianFromTrunk