Avoid relying on being able to modify system Apache installation. Use mod_wsgi-express installed against a specific Python version instead. If you must rely on main system Apache accepting port 80/443, then set it up as a proxy to send requests through to the "mod_wsgi-express start-server" instance.
See: https://pypi.org/project/mod-wsgi/ <https://pypi.org/project/mod-wsgi/> https://www.youtube.com/watch?v=H6Q3l11fjU0&t=2s <https://www.youtube.com/watch?v=H6Q3l11fjU0&t=2s> for more information about mod_wsgi-express. > On 28 May 2021, at 11:28 pm, Adam P <[email protected]> wrote: > > I want to run a django app and be able to choose the python version, however > I am on a shared work system on which the general structure of the server > should not change too much, i.e. I can sudo but I don't want to install > random stuff to system. > > It seems that there are a couple of options. The first thing I thought was to > use conda virtual environments, because then I can also select the python > version, however it seems that anaconda python does not operate well with > apache/mod-wsgi, so I dropped it after running into some issues. > > Then I tried pyenv, and ran into some issues getting the virtual host to use > the correct python version. > > So I am wondering if I should persist with pyenv or use containers, I'm not > sure the relative pros and cons of these two options (or other options if > they exist). > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/modwsgi/19da8742-ad29-4996-93c6-5fa8e624fe72n%40googlegroups.com > > <https://groups.google.com/d/msgid/modwsgi/19da8742-ad29-4996-93c6-5fa8e624fe72n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/modwsgi/B7E0B09F-4BE6-47A3-A368-F4FF2438815F%40gmail.com.
