Hi,

I've made a guide as how to set up an efficient and robust server to
host and serve Django projects and I've opted to use Apache2 coupled
with mod_wsgi; the only problem is that the mod_wsgi process keeps seg
faulting. A note to keep in mind, this is done in a 64-bit
environment.

The guide is located here: 
http://ethics-gradient.blogspot.com/2009/02/django-and-ubuntu-804-chronicle.html

The first issue is, if you simply run this command - "sudo apt-get
install apache2 libapache2-mod-wsgi" - in Ubuntu 8.04 the newly
restarted Apache process will continuously seg fault. For some reason,
the user must manually stop apache, then start it; a simple call to
the restart command doesn't work either.

But then, once mod_wsgi is set to load a Django project using the
settings noted in the aforementioned guide, each request results in a:
"[notice] child pid xxxx exit signal Segmentation fault (11)"

I enabled "LogLevel info" but the additional log messages didn't tell
me much:

[info] mod_wsgi (pid=9251): Create interpreter 'test.gen.ki|'.
[info] [client 127.0.0.1] mod_wsgi (pid=xxxx, process='gen.ki',
application='test.gen.ki|'): Loading WSGI script '/home/django/domains/
gen.ki/private/apache/genki.wsgi'.
[error] [client 127.0.0.1] Premature end of script headers: genki.wsgi
[info] mod_wsgi (pid=9270): Attach interpreter ''.
[info] mod_wsgi (pid=9270): Enable monitor thread in process 'gen.ki'.
[info] mod_wsgi (pid=9270): Enable deadlock thread in process
'gen.ki'.

If you have any insight as to why this might be happening, I would be
very grateful if you would be willing to part with it. The guide
should provide the necessary information as to how the system is set
up, but please ask if there's anything missing.

Paul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" 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/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to