Edgewall Software

Version 2 (modified by anonymous, 20 years ago) ( diff )

Apache suEXEC

Setting the TRAC_ENV environment variable as described in TracInstall will not work when using Apache suEXEC feature because the environment variables are filtered and only a subset reaches the cgi program.

So, we have two choices:

  • Recompile suexec to let it pass the TRAC_ENV variable, not advised, so I'll not explain how to do it.
  • Change our trac.cgi script to set the TRAC_ENV variable by itself, to do this we edit trac.cgi file and add
import os;os.environ['TRAC_ENV'] = '/path/to/projectenv'

before the `try:' line.

Note: See TracWiki for help on using the wiki.