| | 1 | = Trac = |
| | 2 | |
| | 3 | {{{ |
| | 4 | # echo www-apps/trac cgi sqlite vhosts >> /etc/portage/packages.use |
| | 5 | # emerge trac |
| | 6 | }}} |
| | 7 | |
| | 8 | trac-admin: |
| | 9 | {{{ |
| | 10 | # mkdir -p /var/lib/trac/web1/project1 |
| | 11 | # chown -R apache:root /var/lib/trac/web1 |
| | 12 | # trac-admin /var/lib/trac/web1/project1 initenv (use default values) |
| | 13 | }}} |
| | 14 | You may now configure the environment by editing the file: /var/lib/trac/web1/project1/conf/trac.ini[[BR]] |
| | 15 | |
| | 16 | Create a http password file by: |
| | 17 | {{{ |
| | 18 | htpasswd2 -c /var/lib/trac/web1/trac.htpasswd admin |
| | 19 | }}} |
| | 20 | |
| | 21 | In ISPConfig go to the site (thinkthinkdo.com) and enter something like the following into the field "Apache Directives (Optional)": |
| | 22 | {{{ |
| | 23 | ScriptAlias /trac /var/www/web1/cgi-bin/trac.cgi |
| | 24 | <Location /trac> |
| | 25 | SetEnv TRAC_ENV_PARENT_DIR "/var/lib/trac/web1" |
| | 26 | </Location> |
| | 27 | <Location /trac/project1/login> |
| | 28 | AuthType Basic |
| | 29 | AuthName "Trac" |
| | 30 | AuthUserFile /var/lib/trac/web1/trac.htpasswd |
| | 31 | Require valid-user |
| | 32 | </Location> |
| | 33 | }}} |