I want to install trac on my server. I found TracInstall to intall trac step by step. I stopped at the point Running trac on a Web-Server because I do not really understand what all the paths mean. E.g.

Example: Apache and ScriptAlias

Assuming the deployment has been done this way:

$ trac-admin /var/trac/env deploy /path/to/trac/htdocs/common

Add the following snippet to Apache configuration before the ScriptAlias or WSGIScriptAlias (which map all the other requests to the Trac application), changing paths to match your deployment:

Alias /trac/chrome/common /path/to/trac/htdocs/common
Alias /trac/chrome/site /path/to/trac/htdocs/site

<Directory "/path/to/www/trac/htdocs">
  Order allow,deny
  Allow from all
</Directory>

Questions:

  1. What is /var/trac/env? I can't find it on my server.
  2. Is /path/to/trac/htdocs/common the path to my trac project's htdocs folder? There is a htdocs folder but actually it is empty.
  3. What is /path/to/www/trac/htdocs? This is again a totally different path.

What makes that thing even worse, during installation I had to do this

mkdir -p /usr/share/trac/projects/my-project
trac-admin /usr/share/trac/projects/my-project initenv
trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
mv /tmp/deploy/* /usr/share/trac

So I actually have two projects now. Why?

Later in TracInstall he says

Alias /trac/chrome/site /path/to/projectenv/htdocs

Again a strange path. Are that paths all different? Can you tell me how to get trac running on web server correctly?

link|improve this question

feedback

1 Answer

up vote 0 down vote accepted

Is /var/trac/env a Trac environment?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.