Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Aug 05, 2010 2:30 pm 
Offline
Newbie

Joined: Thu Aug 05, 2010 2:22 pm
Posts: 4
I've deployed a stack stript: Security, PostgreSQL/MySQL/MongoDB, Apache, Django - http://www.linode.com/stackscripts/view ... riptID=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:

Code:
<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?


Top
   
PostPosted: Mon Aug 16, 2010 10:47 am 
Offline
Senior Newbie

Joined: Mon May 10, 2010 9:06 pm
Posts: 7
You actually need to create that file (and fix the path)
see http://docs.djangoproject.com/en/1.2/ho ... t/modwsgi/


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group