Edgewall Software

Changes between Initial Version and Version 1 of ApacheSuexec


Ignore:
Timestamp:
Jul 24, 2004, 3:35:01 PM (20 years ago)
Author:
Rui Lopes
Comment:

Describe how to use trac with suexec

Legend:

Unmodified
Added
Removed
Modified
  • ApacheSuexec

    v1 v1  
     1== Apache suEXEC ==
     2
     3Setting the TRAC_ENV environment variable has described in TracInstall will not work when using [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature because the environment variables are filtered and only a subset reaches the cgi program.
     4
     5So, we have two choices:
     6 * Recompile suexec to let it pass the TRAC_ENV variable, not advised, so I'll not explain how to do it.
     7 * Change our trac.cgi script to set the TRAC_ENV variable by itself, to do this we edit trac.cgi file and add
     8
     9{{{
     10import os;os.environ['TRAC_ENV'] = '/path/to/projectenv'
     11}}}
     12
     13before the `try:' line.