Version 1 (modified by 17 years ago) (diff) | ,
---|
Trac
# echo www-apps/trac cgi sqlite vhosts >> /etc/portage/packages.use # emerge trac
trac-admin:
# mkdir -p /var/lib/trac/web1/project1 # chown -R apache:root /var/lib/trac/web1 # trac-admin /var/lib/trac/web1/project1 initenv (use default values)
You may now configure the environment by editing the file: /var/lib/trac/web1/project1/conf/trac.ini
Create a http password file by:
htpasswd2 -c /var/lib/trac/web1/trac.htpasswd admin
In ISPConfig go to the site (thinkthinkdo.com) and enter something like the following into the field "Apache Directives (Optional)":
ScriptAlias /trac /var/www/web1/cgi-bin/trac.cgi <Location /trac> SetEnv TRAC_ENV_PARENT_DIR "/var/lib/trac/web1" </Location> <Location /trac/project1/login> AuthType Basic AuthName "Trac" AuthUserFile /var/lib/trac/web1/trac.htpasswd Require valid-user </Location>