Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WSGI apps with python 2 and python 3 on the same server?

I already have a web application in written in Python 2 that runs over WSGI (specifically, OpenERP web server).

I would like to write a new web application that would run on the same server (Apache 2 on Ubuntu), but using WSGI and Python 3. The two applications would be on different ports.

Is that possible?

like image 212
Adam Jacobs Avatar asked Nov 24 '22 07:11

Adam Jacobs


1 Answers

No, it is not possible with mod_wsgi (see here: https://github.com/GrahamDumpleton/mod_wsgi/issues/21 and here: https://serverfault.com/questions/599859/multiple-python-versions-under-apachemod-wsgi)

This post also provides an alternative: using nginx.

like image 84
Dunatotatos Avatar answered Nov 26 '22 22:11

Dunatotatos