Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning a Django site under mod_wsgi
    primarykey
    data
    text
    <p>I am trying to run my Django sites with mod_wsgi instead of mod_python (RHEL 5). I tried this with all my sites, but get the same problem. I configured it the standard way everyone recommends, but requests to the site simply time out.</p> <p>Apache conf:</p> <pre><code>&lt;VirtualHost 74.54.144.34&gt; DocumentRoot /wwwclients/thymeandagain ServerName thymeandagain4corners.com ServerAlias www.thymeandagain4corners.com LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog /var/log/httpd/thymeandagain_access_log combined ErrorLog /var/log/httpd/thymeandagain_error_log LogLevel error WSGIScriptAlias / /wwwclients/thymeandagain/wsgi_handler.py WSGIDaemonProcess thymeandagain user=admin group=admin processes=1 threads=16 WSGIProcessGroup thymeandagain &lt;/VirtualHost&gt; </code></pre> <p>wsgi_handler.py:</p> <pre><code>import sys import os sys.path.append("/wwwclients") os.environ['DJANGO_SETTINGS_MODULE'] = 'thymeandagain.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler() </code></pre> <p>The daemon mod_wsgi is supposed to spawn off is not there, so requests just time out and I get a bunch of "Unable to connect to WSGI daemon process" errors in the logs. Is there something about the WSGIDaemonProcess directive that is preventing creation of the daemon? Thanks in advance for any help...</p> <p>EDIT: I get this in the error log:</p> <pre><code>[WARN@1227228322.174175] mcm_server_readable():2582: timeout: Operation now in progress: select(2) call timed out for read(2)able fds [INFO@1227228322.174263] mcm_get_line():1592 [WARN@1227227903.249626] mcm_server_readable():2582: timeout: Operation now in progress: select(2) call timed out for read(2)able fds [INFO@1227227903.249712] mcm_get_line():1592 [Thu Nov 20 21:18:17 2008] [notice] caught SIGTERM, shutting down [Thu Nov 20 21:18:18 2008] [notice] Digest: generating secret for digest authentication ... [Thu Nov 20 21:18:18 2008] [notice] Digest: done [Thu Nov 20 21:18:18 2008] [notice] mod_python: Creating 4 session mutexes based on 8 max processes and 64 max threads. [Thu Nov 20 21:18:18 2008] [notice] Apache/2.2.3 (Red Hat) mod_python/3.2.8 Python/2.4.3 mod_wsgi/2.1-BRANCH configured -- resuming normal operations </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload