Trac 0.12.2

Description:  issue tracker and wiki for software development projects
Maintainer:  Roman Plessl <roman.plessl@oetiker.ch>
Created:  2011-03-29
Updated:  2011-10-18 (Total Rebuild of Package)
Support:  Support <support@oetiker.ch>
Links:  Homepage, SEPP Dir, INSTALL
OS:  linux
Categories:  programming, internet, text
Binaries:  trac-admintrac.fcgitracd
More Info
Trac is an enhanced wiki and issue tracking system for software development projects. Trac uses a minimalistic approach to web-based software project management. Our mission; to help developers write great software while staying out of the way. Trac should impose as little as possible on a team's established development process and policies.

To run a trac site on your (personal) homepage check out

  • This will setup a Trac site in your homepage.
Note that this example has a subversion repository in your homedirectory. You may want to host one on our svn server so that people can access it from remote ...

Be in touch with your support to have such a repository created.

  • Note that since this will all be evaluated by the shell, $USER will get replaced by your username and $HOME will be replaced by the path to your homepdirectory.

mkdir -p ~/.mytrac

trac-admin-0.11.6 .mytrac/project initenv "Test Project" \ sqlite:db/trac.db svn $HOME/.mytrac/svn

trac-admin-0.11.6 .mytrac/project permission add $USER TRAC_ADMIN

mkdir ~/public_html/mytrac cd ~/public_html/mytrac

cat <<HTACCESS >.htaccess AuthType Basic AuthName "TracRealm" AuthUserFile /home/$USER/.mytrac/htpasswd

RewriteEngine on RewriteOptions inherit

RewriteCond \$1 !\\.fcgi RewriteRule (.*login.*) /~$USER/mytrac/auth.fcgi/\$1 [L]

RewriteCond \$1 !\\.fcgi RewriteRule (.*) /~$USER/mytrac/base.fcgi/\$1 [L]

<Files auth.fcgi> Require valid-user </Files> HTACCESS

cat <<FCGI >base.fcgi PATH=/bin:/usr/bin TRAC_BASE_URL=/~$USER/mytrac TRAC_ENV=$HOME/.mytrac/project export TRAC_BASE_URL TRAC_ENV if [ `ps -U $USER | grep trac.fcgi | wc -l` -gt 20 ]; then pkill -KILL -U $USER -f python fi exec /usr/sepp/bin/trac.fcgi-0.12.2 FCGI

cat <<FCGI >auth.fcgi PATH=/bin:/usr/bin TRAC_BASE_URL=/~$USER/mytrac TRAC_ENV=$HOME/.mytrac/project export TRAC_BASE_URL TRAC_ENV if [ `ps -U $USER | grep trac.fcgi | wc -l` -gt 20 ]; then pkill -KILL -U $USER -f python fi exec /usr/sepp/bin/trac.fcgi-0.12.2 FCGI

chmod 755 *.fcgi

cd ~/.mytrac htpasswd -c htpasswd $USER

  • Now go to your homepage and access the mytrac directory to learn all about administrating your new trac site.
http://WEBSERVER/~$USER/mytrac

  • If you use a remote accessible svn repository on james, you can get in touch with support@oetiker.ch to get filesystem access to it, and then edit your conf/trac.ini file accordingly.
  • If you run your trac on a other baseurl you have to configure the parameter baseurl in your trac.ini file
  • use "svnadmin create ~/.mytrac/svn" to create a real svn repository. Trac will run without it as well.