mod_wsgi + Plesk 11.5

391 views
Skip to first unread message

Sebastian Clemens

unread,
Nov 16, 2013, 8:18:10 AM11/16/13
to mod...@googlegroups.com
Hello,

I have a new server running Plesk 11.5 with Debian 6. That's not the first time for me to get django run with mod_wsgi, but now here is a quite weird issue.
At first I made a virtual environment and install django + mezzanine + cartridge. Then I used this configuration:

Alias /robots.txt /var/www/vhosts/sebastian-clemens.de/httpdocs/robots.txt
Alias /favicon.ico /var/www/vhosts/sebastian-clemens.de/httpdocs/favicon.ico

Alias /static/ /var/www/vhosts/sebastian-clemens.de/httpdocs/static/
Alias /media/ /var/www/vhosts/sebastian-clemens.de/httpdocs/static/media/

WSGIDaemonProcess sebastian-clemens.de display-name=%{GROUP} python-path=/var/www/vhosts/sebastian-clemens.de:/var/www/vhosts/sebastian-clemens.de/httpdocs/lib/python2.6/site-packages:/var/www/vhosts/sebastian-clemens.de/httpdocs/lib/python2.6
WSGIProcessGroup sebastian-clemens.de
WSGIApplicationGroup sebastian-clemens.de
WSGIScriptAlias / /var/www/vhosts/sebastian-clemens.de/httpdocs/wsgi.py

Here I get a 500 error. At the beginning I saw a few errors in the apache logs about django settings, after fix that the 500 error still remain and I get no more error logs in apache.
I guess that's not an python error but I don't know where to look further.
Any advices? :)

Greetings
Sebastian

Graham Dumpleton

unread,
Nov 17, 2013, 8:36:37 PM11/17/13
to mod...@googlegroups.com
Temporarily set:

DEBUG = True

in Django settings module, or otherwise set up Django to email you or otherwise log somehow any errors it captures and turns into 500 pages.

Also make sure you have defined templates/handlers for 404 and 500 errors.

Se the Django documentation for more details on these.

Graham

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages