简体   繁体   中英

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. What make me curious that setting WSGISocketPrefix to /var/run/wsgi or any other directory is not getting me any help. I still have "(13)Permission denied: mod_wsgi (pid=21696): Unable to connect to WSGI daemon process..." in error log.

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. Not even sure that if mod_wsgi is compiled from source code whether will work with peruser MPM. What MPM are you using? Is it peruser as suggested by your configuration?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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