Hi there,

I'm installing Trac in order to evaluate it against other issue
tracking software. I've had a search through previous posts on this
discussion list but to no avail.

All seems to work fine until the final stage of running Trac from a
web browser using Apache with mod_python. The "Available projects"
page displays the (so far single) project but clicking on the project
link (or entering the URL in the browser address line) will not
display the project. Details follow:

Platform is Windows 2008 Server

I've installed...
Collabnet Subversion Server 1.5.5 (which installs Apache 2.2.8)
Python 2.5
Setuptools V0.6c7 for Python 2.5
Genshi 0.5.1 for Python 2.5
Python bindings for Subversion 1.5.5 and Python 2.5
Trac (Release 0.11.2.1) Windows installer

There is a Subversion repository set up for the project, working fine.

I created directory C:\trac-projects to hold multiple Trac projects,
and used trac-admin to create an environment "Survey_2007" as below:
trac-admin c:\trac-projects\Survey_2007 initenv
  Project name [My Project]> Survey_2007
  Database connection string [sqlite:db/trac.db]   [default selected]
  Repository type [svn]>  [default selected]
  Path to repository [/path/to/repos]> c:/svn_repositories/
Survey_2007

Testing with the tracd stand-alone server works fine using URL "http://
localhost:8000/Survey_2007", and integrates with the svn repository.

Then I added the following to the Apache httpd.conf file:

# Added code start -----
<Location /projects>
   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnvParentDir C:\trac-projects
   PythonOption TracUriRoot /projects
   PythonDebug on
</Location>

<Location /projects/Survey_2007>
   SetHandler mod_python
   PythonInterpreter main_interpreter
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnv C:\trac-projects\Survey_2007
   PythonOption TracUriRoot /projects/Survey_2007
   PythonDebug on
</Location>

<Location /mpinfo>
   SetHandler mod_python
   PythonHandler mod_python.testhandler
</Location>
# Added code end -----

Restarted the Apache service.

Now, from the browser URL "http://localhost/projects"; shows a simple
page titled "Available projects" with a single link "Survey_2007", the
URL for the link being "http://localhost/projects/Survey_2007";.
Clicking this link gives "Internet Explorer cannot display the
webpage" under Internet Explorer or "Connection interrupted" under
Firefox. The Apache error log shows the occasional "child process
exited with status 255".

I assume the problem lies in the Location tags in the Apache
configuration file, but can anyone give me any pointers as to where I
am going wrong with this?

Any help welcome.

Regards,

Steve Warin

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to