Changes between Version 43 and Version 44 of TracOnDebian
- Timestamp:
- Dec 29, 2004, 3:08:40 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnDebian
v43 v44 41 41 {{{ 42 42 apt-get install apache2-common apache2-doc apache2-mpm-worker libapache2-svn 43 44 43 apt-get remove apache 44 apache2 -k start 45 45 }}} 46 Also, edit /etc/default/apache2 so it says {{{NO_START=0}}} if you want apache2 to run on boot. 47 46 48 * Trac 0.8 runs better with Python 2.2 and python-xml (without them, diffs and attachment uploading may not work): 47 49 {{{ … … 78 80 I added the following to /etc/apache2/sites-available/default: 79 81 {{{ 80 81 82 83 84 82 #SVN dir 83 <Location /svn> 84 DAV svn 85 SVNParentPath /var/svn 86 </Location> 85 87 }}} 86 88 Then I fixed permissions and restarted apache2: … … 100 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: 101 103 {{{ 102 103 104 105 106 104 Alias /trac "/usr/share/trac/htdocs" 105 ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/ 106 <Location "/cgi-bin/trac.cgi"> 107 SetEnv TRAC_ENV "/var/trac/project" 108 </Location> 107 109 108 109 110 111 112 113 110 <Directory "/usr/share/trac/htdocs"> 111 Options Indexes MultiViews 112 AllowOverride None 113 Order allow,deny 114 Allow from all 115 </Directory> 114 116 115 116 117 # You need something like this to authenticate users 118 <Location "/cgi-bin/trac.cgi/login"> 117 119 AuthType Basic 118 120 AuthName "project" 119 121 AuthUserFile /var/www/trac.htpasswd 120 122 Require valid-user 121 123 </Location> 122 124 }}} 123 125 Now to fix the permissions, add a couple of users, and restart Apache: