Django Site after deploying with a StackScript - Need Help

I've deployed a stack stript: Security, PostgreSQL/MySQL/MongoDB, Apache, Django - http://www.linode.com/stackscripts/view … riptID=131">http://www.linode.com/stackscripts/view/?StackScriptID=131

The sample scripts worked great. The sample project works great.

But then I tried to setup my own configuration. Nno matter what I do, Apache won't see the wsgi script.

Here's my VE config:

 <virtualhost *:80="">ServerAdmin root@mysite.com
ServerName mysite.com
ServerAlias www.mysite.com

Alias /site_media/ /srv/mysite/site_media/
Alias /admin_media/ /srv/mysite/lib/python2.6/site-packages/django/contrib/admin/media/
# Alias /robots.txt /srv/mysite/robots.txt
# Alias /favicon.ico /srv/mysite/site_media/favicon.ico

CustomLog "|/usr/sbin/rotatelogs /srv/mysite/logs/access.log.%Y%m%d-%H%M%S 5M" combined
ErrorLog "|/usr/sbin/rotatelogs /srv/mysite/logs/error.log.%Y%m%d-%H%M%S 5M" LogLevel warn

WSGIDaemonProcess mysite.com user=django group=django processes=1 threads=15 maximum-requests=10000 python-path=/srv/mysite/lib/python2.6/site-packages python-eggs=/srv/mysite/run/eggs
WSGIProcessGroup mysite.com
WSGIScriptAlias / /srv/mysite/apache/django.wsgi

 <directory srv="" mysite="" site_media="">Order deny,allow
Allow from all
Options -Indexes FollowSymLinks</directory> 

 <directory srv="" mysite="" apache="">Order deny,allow
Allow from all</directory></virtualhost> 

The error I'm getting is:

[Thu Aug 05 09:53:27 2010] [error] [client XX.XX.XX.XX] Target WSGI script not found or unable to stat: /srv/mysite/apache/django.wsgi

So, Apache is booting no problem, it's catching the error and access points, it's just not seeing the wsgi file.

I've rebooted, set the permissions wide open, matched the permissions to the sample_project etc, etc.

Can you make any suggestions on what to do?

1 Reply

You actually need to create that file (and fix the path)

see http://docs.djangoproject.com/en/1.2/ho … t/modwsgi/">http://docs.djangoproject.com/en/1.2/howto/deployment/modwsgi/

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct