Question on multiple python environments in Apache

Jeffrey Gaynor jgaynor at ncsa.uiuc.edu
Mon Oct 25 16:50:32 CEST 2010


Because that is a mess to manage, involving hacking the Apache source and multiple recompiles (this will have to run under CentOS). Using Python should be easy and not entail multiple compiles of other people's software. My main question boils down to the best way to get mutltiples interpreters running at a time or, failing that, a way to get separate threads. 

Is there an *easy* way to do this with virtualenv or virtual hosts under Apache?

----- Original Message -----
From: "Mario Miri" <mario.miri at gmail.com>
To: "python-list" <python-list at python.org>
Sent: Monday, October 25, 2010 2:50:55 AM
Subject: Re: Question on multiple python environments in Apache


Why wouldn't you use multiple apache instances? 


On Fri, Oct 22, 2010 at 11:28 PM, Jeffrey Gaynor < jgaynor at ncsa.uiuc.edu > wrote: 


I have several different versions of a web app that run under Apache. The issue is that I need to have several different configurations available under several environments (such as Django, mod_python and plain vanilla mod_wsgi). Is there a simple way to get several of these to be completely independent? I thought about virtualenv, but it seems that I can only get one virtual environment for the entire server (so this just keeps it distinct from my main python install), rather than half a dozen. These will be on a dedicated test server so performance is not an issue. 

Does anyone know of a good FAQ that discusses this? 

Thanks in advance, 

Jeff 
-- 
http://mail.python.org/mailman/listinfo/python-list 


-- 
http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list