Мы снимаем сервер на ОС CentOS.
Поставил Пайтон 2.6.4, Апач 2.2, Джанго 1.1.1, Мускуль 5 .0.77, mod_wsgi, создал пустой проект в /var/www/qwerty
Захожу на адрес проекта пишет ошибка 503 Service Temporarily Unavailable
файл httpd.conf:
LoadModule wsgi_module modules/mod_wsgi.so
<VirtualHost *:80>
ServerName climat
ServerAdmin test@test.com
DocumentRoot /var/www/climat
WSGIScriptAlias / /var/www/qwerty/first.wsgi
WSGIDaemonProcess qwerty processes=2 maximum-requests=5 threads=1
WSGIProcessGroup qwerty
<Directory /var/www/climat>
Order allow,deny
Allow from all
</Directory>
Alias /media /var/www/qwerty/media
<Directory /var/www/qwerty/media>
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
# ServerName test.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
#!/opt/python2.6/bin/python
import os, sys
sys.path.insert(0,'/var/www/qwerty')
sys.path.insert(0,'/usr/lib/python2.6/site-packages/django')
os.environ['DJANGO_SETTINGS_MODULE'] = 'qwerty.settings'
os.environ['PYTHON_EGG_CACHE'] = '/var/www/qwerty/.python-eggs'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
[Wed Dec 02 11:39:07 2009] [error] [client 192.168.1.8]
(13)Permission denied: mod_wsgi (pid=3088):
Unable to connect to WSGI daemon process 'qwerty'
on '/etc/httpd/logs/wsgi.3078.0.1.sock' after multiple attempts.