Trac

= Summary =

Trac 0.10.3 is running at http://trac.osgeo.org/ (the primary Peer1 host).


 * Trac Guide
 * All data and configurations live under /var/www/trac
 * virtual server configurations are under /etc/httpd/conf.d/trac
 * Existing Instances
 * Actual python is installed in /usr/lib/python2.3/site-packages/trac
 * Frank Warmerdam and Howard Butler have configuration experience, and can help maintain instances.
 * available plugins:
 * TOC - multi page tables of contents.
 * MediaWikiMacro - provides media wiki like format support (link? details?)
 * TracDoxygen - mix doxygen docs into trac interface (needs extra admin support)

= Procedures =

Upgrade
The file /usr/lib/python2.3/site-packages/trac/notification.py was substantially modified to support looking up email addresses in LDAP, and will need to be re-adjusted if we upgrade to a new version of Trac.


 * http://trac.osgeo.org/osgeo/ticket/39

Creating a trac instance
$ sudo trac-admin /var/www/trac/ initenv $ sudo trac-admin /var/www/trac/ permission add  TRAC_ADMIN $ sudo chown -R apache:apache /var/www/trac/


 * Update /var/www/trac///conf/trac.ini to enable email notification.
 * Add virtual host file /etc/httpd/conf.d/trac/.conf enabling LDAP based authentication.
 * Logo can be referenced in /var/www/trac//conf/trac.ini and placed in /var/www/trac//htdocs
 * modify webadmin.* setting in trac.ini to enabled for web based administration.
 * Add to /var/www/trac/index.html
 * Add the following to /var/www/trac/robots.txt to avoid walking through ticket attachments or svn.

Disallow: //browser Disallow: //log Disallow: //report Disallow: //changeset Disallow: //attachment

Recommended Trac permissions: anonymous      BROWSER_VIEW anonymous      CHANGESET_VIEW anonymous      FILE_VIEW anonymous      LOG_VIEW anonymous      MILESTONE_VIEW anonymous      REPORT_SQL_VIEW anonymous      REPORT_VIEW anonymous      ROADMAP_VIEW anonymous      SEARCH_VIEW anonymous      TICKET_VIEW anonymous      TIMELINE_VIEW anonymous      WIKI_VIEW authenticated  TICKET_CHGPROP authenticated  TICKET_CREATE authenticated  TICKET_MODIFY authenticated  WIKI_CREATE authenticated  WIKI_MODIFY developers     DOXYGEN_VIEW developers     MILESTONE_ADMIN developers     REPORT_ADMIN developers     REPORT_CREATE developers     WIKI_ADMIN warmerdam      developers warmerdam      TRAC_ADMIN ...

Hotcopy a trac instance
$ sudo trac-admin /var/www/html/trac/ hotcopy /path/to/copy/trac/to

= Trac Spam =

We have had problems with trac spam when ticket create and ticket modify permissions were set to anonymous (the default). To get around this most (all?) instances have been changed to require authenticated users to do these actions.

But some projects strongly desire to support anonymous ticket creation and modification and at some point this might be viable using image captcha technology to keep out the spammers. A Trac plugin for this is apparently under development, and described at:

http://trac.edgewall.org/browser/sandbox/spam-filter-captcha