Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dan  
View profile  
 More options Apr 18 2012, 4:57 pm
From: Dan <ellis...@gmail.com>
Date: Wed, 18 Apr 2012 13:57:48 -0700 (PDT)
Local: Wed, Apr 18 2012 4:57 pm
Subject: python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
Hello all,

I'm trying to deploy a django project using the recommended daemon
mode.  I read that rather than using WSGIPythonPath, one should pass
the path as an argument to WSGIDaemonProcess as "python-path".  I have
tried this, but get an error with importing.  If I go ahead and
include the WSGIPythonPath directive, the import works fine.

Does this mean my mod_wsgi is ignoring the daemon process directive
altogether?  Here is a sample of my file:

LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
WSGIDaemonProcess python-path=/home/ubuntu/site/site_proj
WSGIScriptAlias / /home/ubuntu/site/site_proj/djangoapp/wsgi.py
WSGIPythonPath /home/ubuntu/site/site_proj

Is there a way I can check whether daemon mode is working properly?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Apr 18 2012, 5:39 pm
From: Graham Dumpleton <graham.dumple...@gmail.com>
Date: Thu, 19 Apr 2012 07:39:16 +1000
Local: Wed, Apr 18 2012 5:39 pm
Subject: Re: [modwsgi] python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
You are missing WSGIProcessGroup directive. You can validate using:

http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Embedd...

Review setup instructions for daemon mode in:

http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegat...

Graham

On 19 April 2012 06:57, Dan <ellis...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan  
View profile  
 More options Apr 19 2012, 8:35 am
From: Dan <ellis...@gmail.com>
Date: Thu, 19 Apr 2012 05:35:49 -0700 (PDT)
Local: Thurs, Apr 19 2012 8:35 am
Subject: Re: python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
If there's currently no domain pointing to the site (i.e. it's in
development), would specifying the IP address rather than the domain
work?

Either way, thank you for the help.  I will try it out now.

On Apr 18, 5:39 pm, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan  
View profile  
 More options Apr 19 2012, 8:41 am
From: Dan <ellis...@gmail.com>
Date: Thu, 19 Apr 2012 05:41:37 -0700 (PDT)
Local: Thurs, Apr 19 2012 8:41 am
Subject: Re: python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
I went ahead and assigned a subdomain to the IP address and everything
works great! :-)

On Apr 18, 5:39 pm, Graham Dumpleton <graham.dumple...@gmail.com>
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Graham Dumpleton  
View profile  
 More options Apr 19 2012, 10:14 pm
From: Graham Dumpleton <graham.dumple...@gmail.com>
Date: Fri, 20 Apr 2012 12:14:42 +1000
Local: Thurs, Apr 19 2012 10:14 pm
Subject: Re: [modwsgi] Re: python-path not working for WSGIDaemonProcess (or WSGIDaemonProcess isn't working at all!)
The domain should be totally irrelevant unless you aren't showing all
the relevant Apache configuration.

The only way your WSGI application would have been run in the daemon
process would be to have set WSGIProcessGroup or add appropriate
process-group option to WSGIScriptAlias. One when in daemon mode would
python-path option applied.

Anyway, so long as that validation check I pointed you to in
documentation now works, you should be fine. You might look at some of
the other validation checks you can run which are described in that
documentation to understand how your system is setup.

Graham

On 19 April 2012 22:41, Dan <ellis...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »