running subprocess.Popen under apache+mod_wsgi is always returning an error with a returncode of -6

陌路散爱 提交于 2019-12-01 03:48:35

Are you using Python 2.7.2 by chance?

That version of Python introduced a bug which cause fork() in sub interpreters to fail:

http://bugs.python.org/issue13156

You will have to force WSGI application to run in main Python interpreter of the process by setting:

WSGIApplicationGroup %{GLOBAL}

If running multiple Django applications you need to ensure that only the one affected has this configuration directive applied to it else you would cause all Django applications to run in one interpreter which isn't possible due to how Django configuration works.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!