Edgewall Software

Changes between Version 43 and Version 44 of TracOnDebian


Ignore:
Timestamp:
Dec 29, 2004, 3:08:40 PM (19 years ago)
Author:
bryan@…
Comment:

Add line so apache2 starts on boot; fix indents

Legend:

Unmodified
Added
Removed
Modified
  • TracOnDebian

    v43 v44  
    4141{{{
    4242apt-get install apache2-common apache2-doc apache2-mpm-worker libapache2-svn
    43   apt-get remove apache
    44   apache2 -k start
     43apt-get remove apache
     44apache2 -k start
    4545}}}
     46  Also, edit /etc/default/apache2 so it says {{{NO_START=0}}} if you want apache2 to run on boot.
     47
    4648 * Trac 0.8 runs better with Python 2.2 and python-xml (without them, diffs and attachment uploading may not work):
    4749{{{
     
    7880   I added the following to /etc/apache2/sites-available/default:
    7981{{{
    80   #SVN dir
    81   <Location /svn>
    82     DAV svn
    83     SVNParentPath /var/svn
    84   </Location>
     82#SVN dir
     83<Location /svn>
     84  DAV svn
     85  SVNParentPath /var/svn
     86</Location>
    8587}}}
    8688   Then I fixed permissions and restarted apache2:
     
    100102   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:
    101103{{{
    102   Alias /trac "/usr/share/trac/htdocs"
    103   ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/
    104   <Location "/cgi-bin/trac.cgi">
    105             SetEnv TRAC_ENV "/var/trac/project"
    106   </Location>
     104Alias /trac "/usr/share/trac/htdocs"
     105ScriptAlias /cgi-bin/ /usr/share/trac/cgi-bin/
     106<Location "/cgi-bin/trac.cgi">
     107 SetEnv TRAC_ENV "/var/trac/project"
     108</Location>
    107109 
    108   <Directory "/usr/share/trac/htdocs">
    109     Options Indexes MultiViews
    110     AllowOverride None
    111     Order allow,deny
    112     Allow from all
    113   </Directory>
     110<Directory "/usr/share/trac/htdocs">
     111  Options Indexes MultiViews
     112  AllowOverride None
     113  Order allow,deny
     114  Allow from all
     115</Directory>
    114116 
    115   # You need something like this to authenticate users
    116   <Location "/cgi-bin/trac.cgi/login">
     117# You need something like this to authenticate users
     118<Location "/cgi-bin/trac.cgi/login">
    117119  AuthType Basic
    118120  AuthName "project"
    119121  AuthUserFile /var/www/trac.htpasswd
    120122  Require valid-user
    121   </Location>
     123</Location>
    122124}}}
    123125  Now to fix the permissions, add a couple of users, and restart Apache: