Edgewall Software

Ticket #3774 (closed defect: worksforme)

Opened 2 years ago

Last modified 2 years ago

TRAC_ENV_PARENT_DIR doesn't seem to be enough to launch Trac

Reported by: marcin at brzezinski dot net Owned by: jonas
Priority: normal Milestone:
Component: general Version: 0.10rc1
Severity: critical Keywords: needinfo
Cc: rhind@…

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

Change History

Changed 2 years ago by mgood

  • keywords needinfo added

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.

Changed 2 years ago by anonymous

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

Changed 2 years ago by Russell Hind <rhind@…>

  • cc rhind@… added

Changed 2 years ago by anonymous

  • status changed from new to closed
  • resolution set to worksforme

it seems to work after all :-/

I don't know what the reason was

Add/Change #3774 (TRAC_ENV_PARENT_DIR doesn't seem to be enough to launch Trac)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.