OK, I have the usual problem with CGI speed on a W2K3 Server. I installed fcgid (since I couldn't find a fastcgi binary) and updated my Apache configuration.
Everything loads quite OK up to the point where Trac searches for the TRAC_ENV_PARENT_DIR: 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). I tried the import os os.environ['']="" in the fcgi script (see attached file) without success. Also, does anyone know where I can place the DefaultInitEnv directive from the fcgid configuration? Placing it in a Location context generates an error and apache does not load. Thanks, V.- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~----------~----~----~----~------~----~------~--~---
#!d:\dev\Python23\python.exe # -*- coding: utf-8 -*- # # Copyright (C) 2003-2004 Edgewall Software # Copyright (C) 2003-2004 Jonas Borgström <[EMAIL PROTECTED]> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision # history and logs, available at http://trac.edgewall.org/log/. # # Author: Jonas Borgström <[EMAIL PROTECTED]> try: import os os.environ['TRAC_ENV_PARENT_DIR'] = "d:/trac" from trac.web import fcgi_frontend fcgi_frontend.run() except SystemExit: raise except Exception, e: print 'Content-Type: text/plain\r\n\r\n', print 'Oops...' print print 'Trac detected an internal error:' print print e print import traceback import StringIO tb = StringIO.StringIO() traceback.print_exc(file=tb) print tb.getvalue()
