Opened 18 years ago
Closed 18 years ago
#3774 closed defect (worksforme)
TRAC_ENV_PARENT_DIR doesn't seem to be enough to launch Trac
Reported by: | marcin at brzezinski dot net | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.10rc1 |
Severity: | critical | Keywords: | needinfo |
Cc: | rhind@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I tried to set up this variable: SetEnv TRAC_ENV_PARENT_DIR "/path/to/project/parent/dir"
But Trac demands from me the TRAC_ENV to be set, or otherwise refuses to run.
When I set the TRAC_ENV to a project directory - it doesn't seem to see any other projects?
I'd be grateful for either fixing this (if it's a bug) or updating the documentation to let people like me know how to approach this problem. I use CGI version on Apache2, Python2.3.
Great work, by the way!
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
Keywords: | needinfo added |
---|
comment:2 by , 18 years ago
Here it goes: (When I add # in front of the TRAC_ENV line it refuses to load up :-(
devbox:/etc/apache2/conf.d# cat trac.d Alias /trac-htdocs /usr/share/trac/htdocs
<Directory "usr/share/trac/htdocs">
Order allow,deny Allow from all
</Directory> <Location "/trac">
AuthType Basic AuthName "Trac" AuthUserFile /usr/share/trac/trac.htpasswd Require valid-user
SetEnv TRAC_ENV_PARENT_DIR "/usr/share/trac/projects" SetEnv TRAC_ENV "/usr/share/trac/projects/qportal"
</Location> ScriptAlias /trac/trac.cgi /usr/share/trac/cgi-bin/trac.cgi
comment:3 by , 18 years ago
Cc: | added |
---|
comment:4 by , 18 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
it seems to work after all :-/
I don't know what the reason was
Can you provide the section of your Apache config with the Trac settings? You may have made a typo or other config mistake that is preventing this from working.