From 61e2016ee3e52d938557c0bed0248476555b0afa Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 8 Nov 2010 10:58:29 +0100 Subject: Ensure that Apache is running with MPM=Prefork Script wsgi.py checks if Apache is compiled with MPM=Prefork and if not, it refuses to run. https://fedorahosted.org/freeipa/ticket/252 --- install/share/wsgi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'install/share') diff --git a/install/share/wsgi.py b/install/share/wsgi.py index 52671b5a..461c06b9 100644 --- a/install/share/wsgi.py +++ b/install/share/wsgi.py @@ -22,4 +22,8 @@ else: api.log.info('*** PROCESS START ***') # This is the WSGI callable: - application = api.Backend.session + def application(environ, start_response): + if not environ['wsgi.multithread']: + return api.Backend.session(environ, start_response) + else: + api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM") -- cgit