When I try to visit the Django website at http://www.satoshi.example.com/mysite , I get 503 Service Temporary Unavailable
.
The Apache error log says:
[Tue Feb 28 07:11:09 2012] [error] [client 10.0.0.202] (13)Permission denied: mod_wsgi (pid=4756): Unable to connect to WSGI daemon process 'django' on '/etc/httpd/logs/wsgi.17555.4.1.sock' after multiple attempts.
Apache loads mod_wsgi
correctly
root@satoshi :~/html/mysite
Apache downloads /var/www/html/mysite/apache/apache_django_wsgi.conf
which
WSGIDaemonProcess django WSGIProcessGroup django <Directory "/var/www/html/mysite"> Order allow,deny Options Indexes Allow from all IndexOptions FancyIndexing </Directory> WSGIScriptAlias /mysite "/var/www/html/mysite/apache/django.wsgi" <Directory "/var/www/html/mysite/apache"> Order deny,allow Allow from all </Directory>
This is /var/www/html/mysite/apache/django.wsgi
import os import sys paths = [ '/var/www/html/mysite', '/usr/lib/python2.6/site-packages/', ] for path in paths: if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
One thing is strange that I found out that I donβt even need LoadModule wsgi_module modules/mod_wsgi.so
myself httpd.conf
. I think my httpd.conf
is an extension of another configuration already loaded by mod_wsgi
. Not sure if that matters.
Is there something wrong with what I have presented so far? Let me know if you need more information. Thanks in advance!
==================================================== ===
Information requested by @jpic
root@satoshi :/var/www/html
User Information (Did you mean id
? userid
not found)
root@satoshi :/var/www/html
ls -la
information
root@satoshi :/var/www/html