All,

Thanks to everyone who has replied already; I appreciate the help.  But I'm 
still struggling...

I've put together a script to automate what I'm doing for a couple of reasons.
- everyone can see exactly what I'm doing
- I can start from scratch quickly, and it's reproducible.
- this is a common case for someone just starting out with trac, and makes it 
something of a "turnkey solution" (do a minimal FC4 install, run the script, 
go) to hopefully lower the barriers to entry.

This script is a quick hack right now; the code is ugly, error checking is 
minimal-to-absent, it's FC4 specific, etc. etc. etc.  Feedback welcome.

The problem is that the configuration it generates doesn't work and I don't 
see what I've done wrong. :(

I'm putting trac and svn under /var/www; and 
changing /var/www/{trac,svn}/tarpit to apache:apache ownership.
I'm setting up /etc/httpd/conf.d/trac.conf to match the above[1].
I haven't added any users or modified trac.ini yet.
I restart httpd.
Accessing http://localhost/tarpit gives "Not Found"
Accessing http://localhost/cgi-bin/trac.cgi gives the environment error.[2]

I'm probably missing something obvious... but I'm still missing it. :/  What 
am I doing wrong?

Thanks,

Eli

[1] contents of /etc/httpd/conf.d/trac.conf
# Sat Jan 14 19:23:48 2006
<Location /tarpit>
    SetEnv TRAC_ENV /var/www/trac/tarpit
    SetHandler mod_python
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv /var/www/trac/tarpit
</Location>

[2]
Oops...

Trac detected an internal error:

The environment options "TRAC_ENV" or "TRAC_ENV_PARENT_DIR" or the mod_python 
options "TracEnv" or "TracEnvParentDir" are missing.  Trac requires one of 
these options to locate the Trac environment(s).

Traceback (most recent call last):
  File "/var/www/cgi-bin/trac.cgi", line 20, in ?
    cgi_frontend.run()
  File "/usr/lib/python2.4/site-packages/trac/web/cgi_frontend.py", line 124, 
in run
    env = get_environment(req, os.environ, threaded=False)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 329, in 
get_environment
    raise TracError, \
TracError: The environment options "TRAC_ENV" or "TRAC_ENV_PARENT_DIR" or the 
mod_python options "TracEnv" or "TracEnvParentDir" are missing.  Trac 
requires one of these options to locate the Trac environment(s).

------------------. "If it ain't broke now,
Eli Carter         \                  it will be soon." -- crypto-gram
[EMAIL PROTECTED] `-------------------------------------------------

Attachment: autotrac.py
Description: application/python

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to