CGI mode
apt-get install trac
apt-get install apache2
mkdir /var/trac
trac-admin /var/trac/ggs initenv
find / -name "cgi-bin"
cp /usr/share/trac/cgi-bin /usr/lib/cgi-bin
cd /etc/apache2/conf.d/
vi trac.conf
Alias /trac/chrome/common /usr/share/trac/htdocs
<Directory "/usr/share/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
<Location "/trac">
SetEnv TRAC_ENV "/var/trac/ggs"
</Location>
<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/trac.passwd
Require user xinw,dwz
</Location>
:wq
edit /var/trac/ggs/conf/trac.ini
set htdocs_location = /trac/chrome/common
apache2 -k restart
htpasswd /etc/apache2/trac.passwd xinw
apt-get install trac
apt-get install apache2
mkdir /var/trac
trac-admin /var/trac/ggs initenv
find / -name "cgi-bin"
cp /usr/share/trac/cgi-bin /usr/lib/cgi-bin
cd /etc/apache2/conf.d/
vi trac.conf
Alias /trac/chrome/common /usr/share/trac/htdocs
<Directory "/usr/share/trac/htdocs">
Order allow,deny
Allow from all
</Directory>
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
<Location "/trac">
SetEnv TRAC_ENV "/var/trac/ggs"
</Location>
<Location "/trac/login">
AuthType Basic
AuthName "Trac"
AuthUserFile /etc/apache2/trac.passwd
Require user xinw,dwz
</Location>
:wq
edit /var/trac/ggs/conf/trac.ini
set htdocs_location = /trac/chrome/common
apache2 -k restart
htpasswd /etc/apache2/trac.passwd xinw