Развенул на apache свой сервис, хочу воспользоваться phpmyadmin,
при запросе localhost/phpmyadmin возникает ошибка 500, в лога апча появляются django-вские traceback-и.
Вот конфа:
файл /var/www/auto_doc/auto_doc.wsgi
import os
import sys
sys.path.append('/var/www/auto_doc/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'auto_doc.settings'
# import django.core.handlers.wsgi
# application = django.core.handlers.wsgi.WSGIHandler()
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
Файл /etc/apache2/sites-available/auto-doc.local.conf
<VirtualHost *:80>
DocumentRoot /var/www/auto_doc/
ServerName auto-doc.local
ServerAlias www.auto-doc.local
WSGIScriptAlias / /var/www/auto_doc/auto_doc.wsgi
Alias /static/ /var/www/auto_doc/static/files/
<Directory /var/www/auto_doc>
<Files wsgi.py>
Require all granted
AllowOverride All
</Files>
</Directory>
<Directory /var/www/auto_doc/static/files>
Require all granted
AllowOverride All
</Directory>
WSGIDaemonProcess auto-doc.local processes=5 threads=15
WSGIProcessGroup auto-doc.local
ErrorLog /var/www/auto_doc/error.log
CustomLog /var/www/auto_doc/acces.log combined
LogLevel debug
</VirtualHost>
Файл /etc/apache2/httpd.conf
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so-2.7
WSGIScriptAlias / /var/www/auto_doc/auto_doc/wsgi.py
WSGIPythonPath /var/www/auto_doc
<Directory /var/www/auto_doc>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
В чем может быть дело?
Updated 21 Feb. 2015, 15:04 by OlegUP.