简体   繁体   English

WSGISocketPrefix无法帮助503服务暂时不可用错误

[英]WSGISocketPrefix not helping with 503 Service Temporarily Unavailable error

I got that 503 Service Temporarily Unavailable error when trying to set up mod_wsgi in daemon mode. 尝试在守护程序模式下设置mod_wsgi时,我收到“ 503服务暂时不可用”错误。 What make me curious that setting WSGISocketPrefix to /var/run/wsgi or any other directory is not getting me any help. 是什么让我好奇,将WSGISocketPrefix设置为/ var / run / wsgi或任何其他目录并没有给我任何帮助。 I still have "(13)Permission denied: mod_wsgi (pid=21696): Unable to connect to WSGI daemon process..." in error log. 错误日志中仍然显示“(13)权限被拒绝:mod_wsgi(pid = 21696):无法连接到WSGI守护进程...”。

Can you make me any suggestions? 你能给我什么建议吗? Thank you. 谢谢。

Here is my virtual host config: 这是我的虚拟主机配置:

<VirtualHost *:80>
    DocumentRoot /home/anti1869/blabla/http
    CustomLog /var/log/apache2/anti1869/blabla/access.log combined
    ErrorLog /var/log/apache2/anti1869/blabla/error.log
    <IfModule peruser.c>
        ServerEnvironment anti1869 anti1869
        Processor anti1869 anti1869
    </IfModule>
#   <IfModule mod_suexec.c>
#       SuexecUserGroup anti1869 anti1869
#   </IfModule>
#   <IfModule mod_suexec>
#       SuexecUserGroup anti1869 anti1869
#   </IfModule>
    ServerName blabla.com
    ServerAlias www.blabla.com
    Alias /.awstats/icon /usr/share/awstats/wwwroot/icon

    WSGIDaemonProcess blabla.com user=anti1869 group=anti1869 processes=2 threads=15 display-name=%{GROUP}
    WSGIProcessGroup blabla.com
</VirtualHost>

A mod_wsgi.so compiled for worker or prefork MPM will not work with peruser MPM. 为worker或prefork MPM编译的mod_wsgi.so不适用于peruser MPM。 Not even sure that if mod_wsgi is compiled from source code whether will work with peruser MPM. 甚至不确定如果mod_wsgi是从源代码编译的,是否可以与peruser MPM一起使用。 What MPM are you using? 您正在使用什么MPM? Is it peruser as suggested by your configuration? 是您的配​​置所建议的peruser吗?

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

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