简体   繁体   English

apache mod_wsgi仅在守护程序模式下崩溃

[英]apache mod_wsgi crashes only in daemon mode

I was using apache webserver and mod_python as my interface.I am in the process of moving from mod_python to mod_wsgi. 我使用的是Apache Web服务器和mod_python作为界面,我正在从mod_python迁移到mod_wsgi。 I have done all the setup and everything was working fine. 我已经完成所有设置,并且一切正常。 Now when i added the following line(to enable daemon mode), the site was not working. 现在,当我添加以下行(以启用守护程序模式)时,该站点无法正常工作。

WSGIDaemonProcess test.tessite.com processes=5 threads=10 display-name=%{GROUP}

I got a 500 error as response from the server. 我从服务器收到500错误作为响应。 When i looked into Apache's error log, i have the follwoing, 当我查看Apache的错误日志时,我发现,

[Mon Oct 22 12:31:07 2012] [error] [client 58.68.24.230] Premature end of script headers: ls.wsgi

This is my WSGI setup in conf, 这是我在conf中的WSGI设置,

#Set the number of process and threads for each process. process*thread number of requests can be handled at a time
WSGIDaemonProcess test.testsite.com processes=5 threads=10 display-name=%{GROUP}
#Sets which process group WSGI application is assigned to.
WSGIProcessGroup test.testsite.com
#Maps a URL to a filesystem location and designates the target as a WSGI script.
WSGIScriptAlias / /public/gdp/trunk/src/ukl/lis/process/ls.wsgi
<Directory /public/gdp/trunk/src/ukl/lis/process/>
    Order allow,deny
    Allow from all
</Directory>

Why does this happen only in Daemon mode? 为什么仅在守护程序模式下会发生这种情况? How, to fix this problem? 如何解决此问题? Is it safe to run in a non-daemon mode? 在非守护程序模式下运行是否安全?

Have a look at https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions , section "Apache Process Crashes", last question. 查看https://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions ,最后一个问题“ Apache进程崩溃”部分。 Is the mod_python apache module still loaded? 仍在加载mod_python apache模块吗? Are you using any third party libraries that have a C component? 您是否正在使用具有C组件的任何第三方库?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM