Edgewall Software
Modify

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 Matthew Good, 18 years ago

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.

comment:2 by anonymous, 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 Russell Hind <rhind@…>, 18 years ago

Cc: rhind@… added

comment:4 by anonymous, 18 years ago

Resolution: worksforme
Status: newclosed

it seems to work after all :-/

I don't know what the reason was

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.