mod_wsgi incompatible with mod_python
April 7th, 2010 by George Notaras
This is a quick note that mod_wsgi daemon processes are now incompatible with mod_python. Upgraded mod_wsgi earlier today in CentOS and saw the following note. I guess this limitation has been around for a while before affecting CentOS/RHEL:
################################################################################# # mod_python and mod_wsgi compatibility note ################################################################################# # mod_wsgi will deadlock if run in daemon mode while mod_python is enabled # do not enable both mod_python and mod_wsgi if you are going to use the # WSGIDaemonProcess directive # In previous version of mod_wsgi, apache would segfault when both mod_wsgi # and mod_python were enabled. This update does not guarantee that will not # happen. ################################################################################# # Do not enable mod_python and mod_wsgi in the same apache process. #################################################################################
Keep this in mind if you plan to mix both modules under the same Apache instance.
Update: As Graham pointed out in this comment, there is no issue if mod_python 3.3.1 is used. That’s great news because I would miss the flexibility of mod_python when it comes to request processing.
The mod_wsgi incompatible with mod_python by George Notaras, unless otherwise expressly stated, is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Terms and conditions beyond the scope of this license may be available at www.g-loaded.eu.
Related Articles
- My running dog
- Spamassassin FH_DATE_PAST_20XX test buggy in 2010
- Making a directory writable by the webserver
- SELinux audit reports script
- Beagle Part II
Tags: Administration, Apache, WSGI
April 8th, 2010 at 1:13 am
If this is the case it is only true if you are using an ancient mod_python version. If you are using mod_python 3.3.1 there is no issue. Unfortunately RHEL/CentOS distributions do I believe still carry an older mod_python version. Read ‘http://code.google.com/p/modwsgi/wiki/InstallationIssues#Incompatible_ModPython_Versions‘ for more information.
April 8th, 2010 at 4:31 am
Hi Graham. You are right. Thanks for the clarification. I have updated the post.
BTW, CentOS and RHEL use mod_python v3.2.8 and mod_wsgi v3.2.