| 1 | == Apache suEXEC == |
| 2 | |
| 3 | Setting 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 | |
| 5 | So, 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 | {{{ |
| 10 | import os;os.environ['TRAC_ENV'] = '/path/to/projectenv' |
| 11 | }}} |
| 12 | |
| 13 | before the `try:' line. |