Yes, hello world worked. The instructions on that site are a little unclear, but I figured it out.
I put the specified code in /home/trac/wsgi/hello.wsgi I added this to the apache config, just above my current trac config. WSGIScriptAlias /whello /home/trac/wsgi/hello.wsgi Then connected to my server. http://10.0.0.4/whello It generated the simple Hello World! text on the browser. This is the error log output. [Tue Jan 27 09:21:49 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 30683 for (*) [Tue Jan 27 09:21:49 2009] [info] mod_wsgi (pid=30683): Attach interpreter ''. [Tue Jan 27 09:22:21 2009] [info] mod_wsgi (pid=30679): Create interpreter 'localhost|/whello'. [Tue Jan 27 09:22:21 2009] [info] [client 32.97.110.54] mod_wsgi (pid=30679, process='', application='localhost|/whello'): Loading WSGI script '/home/trac/wsgi/hello.wsgi'. [Tue Jan 27 09:22:21 2009] [error] [client 32.97.110.54] File does not exist: /opt/lampp/htdocs/favicon.ico [Tue Jan 27 09:22:22 2009] [debug] proxy_util.c(1854): proxy: grabbed scoreboard slot 0 in child 30689 for worker proxy:reverse [Tue Jan 27 09:22:22 2009] [debug] proxy_util.c(1873): proxy: worker proxy:reverse already initialized [Tue Jan 27 09:22:22 2009] [debug] proxy_util.c(1967): proxy: initialized single connection worker 0 in child 30689 for (*) [Tue Jan 27 09:22:22 2009] [info] mod_wsgi (pid=30689): Attach interpreter ''. [Tue Jan 27 09:22:24 2009] [error] [client 32.97.110.54] File does not exist: /opt/lampp/htdocs/favicon.ico On Jan 26, 6:31 pm, Graham Dumpleton <[email protected]> wrote: > Does a hello world program even work? > > http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide > > If this works, then possibly a problem with some third party C > extension module for Python that you are using. > > Graham > > On Jan 27, 6:47 am, wooD <[email protected]> wrote: > > > I got through the wsgi install. Had to first install http-devel > > package. > > > It looks like I'm now getting a similar error. > > > [Mon Jan 26 11:40:14 2009] [debug] proxy_util.c(1967): proxy: > > initialized single connection worker 0 in child 10461 for (*) > > [Mon Jan 26 11:40:14 2009] [info] mod_wsgi (pid=10461): Attach > > interpreter ''. > > [Mon Jan 26 11:40:16 2009] [info] mod_wsgi (pid=10457): Create > > interpreter 'localhost|/trac'. > > [Mon Jan 26 11:40:16 2009] [info] [client 32.97.110.54] mod_wsgi > > (pid=10457, process='', application='localhost|/trac'): Loading WSGI > > script '/home/trac/wsgi/trac.wsgi'. > > httpd: Objects/stringobject.c:107: PyString_FromString: Assertion > > `str != ((void *)0)' failed. > > > Again, the mod_wsgi.so file was copied from /usr/lib/httpd/modules/ > > mod_wsgi.so into the modules directory in my xampp modules directory. > > > This is the file /home/trac/wsgi/trac.wsgi (directory and file owned > > by apache) > > import os > > os.environ['TRAC_ENV'] = '/home/trac/rt' > > os.environ['PYTHON_EGG_CACHE'] = '/home/trac/rt/eggs' > > > import trac.web.main > > application = trac.web.main.dispatch_request > > > This is the apache conf settings. > > > # Trac wsgi configuration > > LoadModule wsgi_module modules/mod_wsgi.so > > #AddModule mod_wsgi.c - this was specified in the quick install, but > > caused problems on apache startup so I commented it out. > > > WSGIScriptAlias /trac /home/trac/wsgi/trac.wsgi > > > <Directory /home/trac/rt/apache> > > WSGIApplicationGroup %{GLOBAL} > > Order deny,allow > > Allow from all > > </Directory> > > > On Jan 26, 10:22 am, wooD <[email protected]> wrote: > > > > I started the mod_wsgi install, but only had a few minutes. It looks > > > like the xampp apache is causing more problems in that I pointed to > > > it's apxs (/opt/lampp/bin/apxs) and then the configure could not find > > > build/config_vars.mk which doesn't exist because this isn't a > > > "buildable" version of apache which is the root of all the problems > > > I've been having. > > > > I'll look at it again later, but I think I'm going to have to build a > > > second apache server and use that on a different port for the svn and > > > trac stuff. At least I'm leaning towards moving in that direction. > > > > Thanks, > > > Wood > > > > On Jan 26, 4:29 am, Graham Dumpleton <[email protected]> > > > wrote: > > > > > On Jan 26, 3:43 pm, wooD <[email protected]> wrote: > > > > > > Oh, I realized there was more information in the log. > > > > > > httpd: Objects/stringobject.c:107: PyString_FromString: Assertion > > > > > `str != ((void *)0)' failed. > > > > > This is likely due to one of the bugs in mod_python with the way it > > > > reads request content. Normally this is a very infrequent occurrence, > > > > so if you are getting this all the time am a bit surprised. > > > > > Can you use mod_wsgi instead of mod_python? I really don't want to > > > > have to debug problems with mod_python as can be a PITA. > > > > > Graham > > > > > > On Jan 25, 5:48 pm, wooD <[email protected]> wrote: > > > > > > > # Trac configuration > > > > > > LoadModule python_module modules/mod_python.so > > > > > > > <Location /mpinfo> > > > > > > SetHandler mod_python > > > > > > PythonInterpreter main_interpreter > > > > > > PythonHandler mod_python.testhandler > > > > > > </Location> > > > > > > > <Location /projects/rt> > > > > > > SetHandler mod_python > > > > > > PythonInterpreter main_interpreter > > > > > > PythonHandler trac.web.modpython_frontend > > > > > > PythonOption TracEnv /home/trac/rt > > > > > > #PythonOption TracUriRoot /projects/rt > > > > > > </Location> > > > > > > > On Jan 24, 6:13 pm, Graham Dumpleton <[email protected]> > > > > > > wrote: > > > > > > > > Post snippet of Apache configuration showing how you configured > > > > > > > mod_python to pass stuff to Trac. > > > > > > > > Have you set PythonInterpreter in that configuration? > > > > > > > > Graham > > > > > > > > On Jan 24, 11:44 am, wooD <[email protected]> wrote: > > > > > > > > > I'm trying to install trac for a friend and have already gotten > > > > > > > > subversion working on this machine. I also have trac working > > > > > > > > using > > > > > > > > the tracd server, but when I run it under apache I have a > > > > > > > > specific > > > > > > > > problem in the apache log when I try to connect to the trac url. > > > > > > > > > PyString_FromString: Assertion `str != ((void *)0)' failed. > > > > > > > > > I did a simple setup (so far) with no authentication and using > > > > > > > > SqlLite > > > > > > > > (the default db). > > > > > > > > > There is something special with this install. This machine > > > > > > > > already > > > > > > > > hosts an apache server with an application running on it using > > > > > > > > XAMPP > > > > > > > > (lampp) > > > > > > > > > [2007-09-24] XAMPP for Linux 1.6.8a > > > > > > > > > That version of XAMPP/apache doesn't includemod_pythonor > > > > > > > > FastCGI, so > > > > > > > > I improvised and that may be where the problem lies. I went to > > > > > > > > the > > > > > > > > host and installedmod_python(mod_python-3.3.1-7.i38) and simply > > > > > > > > copied this to the modules directory on the XAMPP directory and > > > > > > > > hoped > > > > > > > > for the best. Everything works with the /mpinfo test (I can > > > > > > > > include > > > > > > > > that output if requested) so I figured it should also work with > > > > > > > > the > > > > > > > > trac install. > > > > > > > > > In looking at the apache/XAMPP error log I see the error > > > > > > > > > PyString_FromString: Assertion `str != ((void *)0)' failed. > > > > > > > > > And a blank page is generated. > > > > > > > > > Any ideas? Crazy work around ideas welcome, but based on the > > > > > > > > current > > > > > > > > situation and a bad decision before I stumbled along to use > > > > > > > > XAMPP > > > > > > > > instead of just building a custom apache or using the default > > > > > > > > distro > > > > > > > > apache (Fedore 2.6.26.3-29.fc9.i686 #1 SMP Wed Sep 3 03:42:27 > > > > > > > > EDT > > > > > > > > 2008 i686 i686 i386 GNU/Linux), I need to find a way to make it > > > > > > > > work > > > > > > > > with the current XAMPP install. > > > > > > > > > Thanks, > > > > > > > > wooD --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
