This is really strange, but after upgrading from 2.1 I was looking at my
website and noticed that all of my CGI scripts were returning 500 errors and
in the log it was just saying "Premature end of script headers" while
running the scripts in the shell everything was working fine.
I disabled mod_wsgi and restarted Apache and CGI scripts worked again. So I
downgraded back to 2.1 and reenabled mod_wsgi and everything was happy
again.
_______________________________________________________________________
Douglas William Thrift
<dougl...@gmail.com>
<http://www.douglasthrift.net>
1. What language are the CGI scripts that are failing written in?
2. What is the Apache configuration snippet being used to enable
execution of those CGI scripts?
3. What is the Apache configuration snippet being used to enable WSGI
application?
4. Is mod_python being loaded at the same time?
It only happens when WSGIDaemonProcess directive used with mod_wsgi.
Patch is:
Index: mod_wsgi.c
===================================================================
--- mod_wsgi.c (revision 1001)
+++ mod_wsgi.c (working copy)
@@ -8873,7 +8873,8 @@
* up properly on a restart and on shutdown.
*/
- apr_pool_cleanup_register(p, entry, wsgi_cleanup_process, NULL);
+ apr_pool_cleanup_register(p, entry, wsgi_cleanup_process,
+ apr_pool_cleanup_null);
/*
* If there is more than one daemon process in the group
I guess a mod_wsgi 2.3 will be in order, but need to also fix
setprocttitle() call first as well. :-)
Graham
2008/8/23 Graham Dumpleton <graham.d...@gmail.com>:
2008/8/23 Graham Dumpleton <graham.d...@gmail.com>: