Hi All,
I'm running apache 2.2.1 installed using MacPorts and mod_wsgi
compiled using online instructions [2]. After upgarding my MBP to
10.6, I get the following in my apache's error.log when I try to load
a page:
> [error] [client ::1] Premature end of script headers: django.wsgi
WSGI FAQ [1] suggests:
> If using daemon mode, this is a symptom of the mod_wsgi daemon process crashing when handling a request. You would probably also see the message 'segmentation fault'. See answer for question about 'segmentation fault' above.
The referred section above says:
> This is nearly always caused due to mod_python also being loaded by Apache at the same time as mod_wsgi and the Python installation not providing a shared library, or mod_python having originally being built against a static Python library. This is especially a problem with older Linux distributions before they started shipping with Python as a shared library.
Apache seems to be configured correctly (hasn't changed since before
install), and mod_python isn't being loaded.
I tried rebuilding mod_wsgi using the same instructions [2] I did last
time, but I get an error when I `make` spanning 9k lines [3], the
short version being:
> [...]
> `lipo: can't figure out the architecture type of: <some temp file>.out`
I did a bunch of other poking around - making sure I'm running the
installation of Apache I think I'm running, the config files loaded
are the ones I'm looking at, etc, but I'm running out of
troubleshooting steps. Solutions and advice for next step both
welcome :)
[1]:
http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions
[2]:
http://god.morgon.nu/2009/05/11/mod_wsgi-25-with-macports-python-26/
[3]:
http://gist.github.com/177914