9 | | |
10 | | {{{ |
11 | | #!html |
12 | | <p style="background: #dcf; border: 2px solid #00d; font-style: italic; padding: 0 .5em; margin: 1em 0;"> |
13 | | <strong>Note from vinay:</strong> Having just installed python2.4 on my debian box (I have an x86-64 box and as such python2.3 has bugs in it for the platform), I went through hell and high water (mainly because of a lack of documentation) to get trac running again (as sarge does not support the python bindings at this time). The short of it is, after upgrading to python2.4, and building my own trac package (just download it and install it manually), I had to download the subversion package (from http://subversion.tigris.org/) and compile the swig-py package: |
14 | | <br/><br/> |
15 | | ./configure; make; make install; make swig-py; make install-swig-py |
16 | | <br/><br/> |
17 | | Once that was done, I had to do the following.<br/><br/> |
18 | | echo "/usr/local/lib/svn-python" > /usr/lib/python2.4/site-packages/svn.pth<br /><br />. |
19 | | |
20 | | <b>To whom it may concern (probably mgood)</b>: move this information to wherever it's necessary. |
21 | | </p> |
22 | | }}} |
23 | | |
24 | | {{{ |
25 | | #!html |
26 | | <p style="background: #daf; border: 2px solid #00f; font-style: italic; padding: 0 .5em; margin: 1em 0;"> |
27 | | <strong>Note from eric:</strong> on debian, I installed python2.3-subversion, then it could import <i>svn</i>, hopefully it will work now. |
28 | | </p> |
29 | | }}} |
30 | | |
31 | | {{{ |
32 | | #!html |
33 | | <p style="background: #def; border: 2px solid #00f; font-style: italic; padding: 0 .5em; margin: 1em 0;"> |
34 | | <strong>Note from whylee@whylee.at:</strong> on debian sarge, after installing trac i had to edit /usr/bin/trac-admin and /usr/lib/python2.3/site-packages/trac/sync.py |
35 | | and eliminate 'util' from some import lines to get trac-admin working. Does not seem to be a really stable package. At the end it did not work out and i added a line in /etc/apt/source.list as described in http://projects.edgewall.com/trac/wiki/TracOnDebianSarge and did an 'apt-cache update' and 'apt-get install trac'. The package from edgewall now works fine. |
36 | | </p> |
37 | | }}} |
38 | | |
39 | | {{{ |
40 | | #!html |
41 | | <p style="background: #fef; border: 2px solid #00f; font-style: italic; padding: 0 .5em; margin: 1em 0;"> |
42 | | <strong>Note from jesus.climent () hispalinux.es:</strong> on debian sarge, you can use https://debian.pumuki.org/trac/trac_0.10.3-0sarge1_all.deb and get a backported, fully functional (with apache2) package, made by me as one of the maintainers of Trac in Debian. |
43 | | </p> |
44 | | }}} |
45 | | |
| 34 | }}} |
| 35 | |
| 36 | Most people won't run trac as a separate site and prefer it as /trac/ on the primary site. To get this to work, create a file /etc/apache2/conf.d/trac.conf with the following content: |
| 37 | |
| 38 | {{{ |
| 39 | ScriptAlias /trac /usr/lib/cgi-bin/trac.fcgi |
| 40 | |
| 41 | <Location /trac> |
| 42 | SetEnv TRAC_ENV "/var/spool/trac/" |
| 43 | Options -Indexes |
| 44 | </Location> |
| 45 | |
| 46 | <Location /cgi-bin/trac.cgi> |
| 47 | SetEnv TRAC_ENV "/var/spool/trac/" |
| 48 | </Location> |
| 49 | |
| 50 | <Location /cgi-bin/trac.fcgi> |
| 51 | SetEnv TRAC_ENV "/var/spool/trac/" |
| 52 | </Location> |
| 53 | |
| 54 | <Location "/trac/login"> |
| 55 | AuthName "svn" |
| 56 | AuthType Basic |
| 57 | AuthUserFile /etc/apache2/trac.htpasswd |
| 58 | require valid-user |
| 59 | </Location> |
| 60 | }}} |
| 61 | |
| 62 | {{{ |
| 63 | htpasswd /etc/apache2/trac.htpasswd -c <user1> |
| 64 | htpasswd /etc/apache2/trac.htpasswd <user2> |
| 65 | ... |
| 66 | trac-admin /var/spool/trac |
| 67 | --> init-env |
| 68 | /etc/init.d/apache2 restart |