On 8 April 2011 07:45, Ian Stokes-Rees <[email protected]> wrote:
> I'm trying to do a similar sort of thing.  What tips do people have for
> using *multiple* virtualenv package environments within the same apache web
> server?  Is this impossible?

Yes, can be done from within WSGI script file in different sub
interpreters of same process.

For better separation use daemon mode and run one application for
daemon process group and use python-path option to WSGIDaemonProcess,
or again set it up in the WSGI script file.

> Tim, my suggestions:
>
> 1. What user is the httpd process running as?  Can that user read your
> virtualenv directory?
>
> 2. Is your /path/to/virtualenv/bin in the PATH that is visible to the HTTPD
> process?  You may need to modify apachectl or /etc/sysconfig/httpd to make
> this happen.

Number (2) shouldn't be necessary. The whole point of WSGIPythonHome
is to avoid PATH for Apache when starting up needing to be set to
include bin directory of virtual environment.

Graham


> Ian
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to