Premature end of script headers

down vote

See:

http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions#Apache_Process_Crashes

The message 'premature end of script headers' is usually indicative of your code crashing the daemon process. You can verify this by looking for segmentation fault or similar message in main Apache error log file. If you enable 'LogLevel info' in main Apache config and VirtualHost then mod_wsgi will log more about daemon process restarts.

A quick remedy if running only application in that daemon process group is to add:

WSGIApplicationGroup
 
%{
GLOBAL
}

This will work around crashes caused by broken third party extension modules for Python which aren't written properly to work in sub interpreters.

Other than that, can be shared library version mismatches as described in the FAQ.

你可能感兴趣的:(my,python)