gpt4 book ai didi

python - 带有 mod_wsgi 的 Apache24-x86-VC9 说, "AH00419: master_main: create child process failed. Exiting."并且不会启动

转载 作者:行者123 更新时间:2023-11-28 16:28:33 25 4
gpt4 key购买 nike

我正在尝试在我的 Apache24 的 Windows 版本上安装 WSGI 功能。当我尝试启动该服务时,我在 error.log 中得到以下信息:

[Wed Dec 23 10:24:33.404057 2015] [ssl:warn] [pid 2960:tid 728] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

[Wed Dec 23 10:24:33.544690 2015] [ssl:warn] [pid 2960:tid 728] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

[Wed Dec 23 10:24:33.544690 2015] [wsgi:warn] [pid 2960:tid 728] mod_wsgi: Compiled for Python/2.7.10+.

[Wed Dec 23 10:24:33.544690 2015] [wsgi:warn] [pid 2960:tid 728] mod_wsgi: Runtime using Python/2.7.11.

[Wed Dec 23 10:24:33.544690 2015] [mpm_winnt:notice] [pid 2960:tid 728] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e mod_wsgi/4.4.21 Python/2.7.11 configured -- resuming normal operations

[Wed Dec 23 10:24:33.544690 2015] [mpm_winnt:notice] [pid 2960:tid 728] AH00456: Server built: Dec 9 2015 12:21:09

[Wed Dec 23 10:24:33.544690 2015] [core:notice] [pid 2960:tid 728] AH00094: Command line: 'C:\apache24\bin\httpd.exe -d C:/Apache24'

[Wed Dec 23 10:24:33.544690 2015] [mpm_winnt:notice] [pid 2960:tid 728] AH00418: Parent: Created child process 3112

[Wed Dec 23 10:24:34.091593 2015] [ssl:warn] [pid 3112:tid 656] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

[Wed Dec 23 10:24:34.216600 2015] [ssl:warn] [pid 3112:tid 656] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

[Wed Dec 23 10:24:34.216600 2015] [wsgi:warn] [pid 3112:tid 656] mod_wsgi: Compiled for Python/2.7.10+.

[Wed Dec 23 10:24:34.216600 2015] [wsgi:warn] [pid 3112:tid 656] mod_wsgi: Runtime using Python/2.7.11. ImportError: No module named site

[Wed Dec 23 10:24:34.216600 2015] [mpm_winnt:crit] [pid 2960:tid 728] AH00419: master_main: create child process failed. Exiting.

这是 AH00419 错误,经过 DAYS 的研究我无法弄清楚。

所以,让我们备份。这些是我在收到此错误之前采取的步骤:

我使用 WinRAR 从 mod_wsgi-4.4.21+ap24vc9-cp27-none-win32.whl 压缩包中复制了 mod_wsgi.so 文件。

我把它复制到我的 c:\Apache24\modules 目录中

我将这一行添加到我的 httpd.conf 文件中:“LoadModule wsgi_module modules/mod_wsgi.so”

我的 Python27 是 32 位的

我的Apache24是32位的,是VC9版本

我已经安装了 Visual C++ 2008 (VC9) 32 位

如果我注释掉“LoadModule... ...wsgi”行,Apache24 就可以正常启动。

我不可能是唯一遇到这个问题的人,但我一直无法在网上找到解决方案。谁能帮忙?

最佳答案

我不确定您是否已经找到答案,因为这个问题已经存在两个多月了。无论如何,我遇到了完全相同的问题。我使用了以下软件组合。

来自 https://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC09 的 Apace 2.4 VC9 32 位来自 http://www.apachelounge.com/viewtopic.php?t=5143 的 Python 2.7 32 位的 mod_wsgi

安装 apache 并加载 wsgi 模块后,出现以下错误。

[Thu Mar 03 13:51:57.641443 2016] [ssl:warn] [pid 13892:tid 340] AH01909: localhost:600:0 server certificate does NOT include an ID which matches the server name

[Thu Mar 03 13:51:57.811445 2016] [ssl:warn] [pid 13892:tid 340] AH01909: localhost:600:0 server certificate does NOT include an ID which matches the server name

[Thu Mar 03 13:51:57.811445 2016] [:warn] [pid 13892:tid 340] mod_wsgi: Compiled for Python/2.7.

[Thu Mar 03 13:51:57.811445 2016] [:warn] [pid 13892:tid 340] mod_wsgi: Runtime using Python/2.7.11.

[Thu Mar 03 13:51:57.811445 2016] [mpm_winnt:notice] [pid 13892:tid 340] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2f mod_wsgi/3.4 Python/2.7.11 configured -- resuming normal operations

[Thu Mar 03 13:51:57.811445 2016] [mpm_winnt:notice] [pid 13892:tid 340] AH00456: Server built: Dec 9 2015 12:21:09

[Thu Mar 03 13:51:57.811445 2016] [core:notice] [pid 13892:tid 340] AH00094: Command line: 'Apache24\bin\httpd.exe -d E:/Program Files (x86)/Apache Software Foundation/Apache24'

[Thu Mar 03 13:51:57.821445 2016] [mpm_winnt:notice] [pid 13892:tid 340] AH00418: Parent: Created child process 13684

[Thu Mar 03 13:51:58.271449 2016] [ssl:warn] [pid 13684:tid 352] AH01909: localhost:600:0 server certificate does NOT include an ID which matches the server name

[Thu Mar 03 13:51:58.421451 2016] [ssl:warn] [pid 13684:tid 352] AH01909: localhost:600:0 server certificate does NOT include an ID which matches the server name

[Thu Mar 03 13:51:58.421451 2016] [:warn] [pid 13684:tid 352] mod_wsgi: Compiled for Python/2.7.

[Thu Mar 03 13:51:58.421451 2016] [:warn] [pid 13684:tid 352] mod_wsgi: Runtime using Python/2.7.11. ImportError: No module named site

[Thu Mar 03 13:51:58.431451 2016] [mpm_winnt:crit] [pid 13892:tid 340] AH00419: master_main: create child process failed. Exiting.

之后,我运行了“netsh winsock RESET”,这在其他一些论坛中被称为解决方案,但没有重新启动计算机,尽管它提示我这样做。但这并没有使情况发生任何改变。

然后我在这里发现了以下问题,这给了我一个线索,我可能缺少一些配置。

Tool to upgrade current python installation

我在我的 httpd.conf 中添加了以下几行

WSGIPythonPath "C:/Python33/Lib;C:/Python33/Lib/site-packages;C:/Python33/DLLs"
WSGIPythonHome "C:/Python33"

然后 Apache 开始正常工作。

关于python - 带有 mod_wsgi 的 Apache24-x86-VC9 说, "AH00419: master_main: create child process failed. Exiting."并且不会启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34440078/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com