summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2010-11-08 10:58:29 +0100
committerAdam Young <ayoung@redhat.com>2010-11-22 12:35:52 -0500
commit61e2016ee3e52d938557c0bed0248476555b0afa (patch)
tree668943c90d7efe6ed82d8b48ee74b522c4e17c5f /install
parentb67df045beccf192c9be3ba61fb68986407ae045 (diff)
downloadfreeipa-61e2016ee3e52d938557c0bed0248476555b0afa.tar.gz
freeipa-61e2016ee3e52d938557c0bed0248476555b0afa.tar.xz
freeipa-61e2016ee3e52d938557c0bed0248476555b0afa.zip
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
Diffstat (limited to 'install')
-rw-r--r--install/share/wsgi.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/share/wsgi.py b/install/share/wsgi.py
index 52671b5ab..461c06b94 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")