Platipus

Results 17 comments of Platipus

Yes, mod_wsgi-express start-server is working with our App. No issues. (venv) root@:/var/www/html/jam# mod_wsgi-express start-server --user=www-data --group=www-data wsgi.py Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:0 Server Conf : /tmp/mod_wsgi-localhost:8000:0/httpd.conf Error...

That error is after I reinstalled everything, so starting from a blank VM. So yes, expected this but a bit surprised with PYTHONPATH being empty. AppArmor is not running. www-data...

Will continue investigating. Cheers

Yes, ``` And just to confirm, creating shell using sudo as www-data and then running: ls -las /var/www/html/jam/venv ``` works fine. I can source virtualenv, do pip install, etc. All...

Hi, IMO, gunicorn does not work either when used with virtualenv : ``` (venv) $gunicorn wsgi [2023-05-31 07:54:55 +0000] [2615] [INFO] Starting gunicorn 20.1.0 [2023-05-31 07:54:55 +0000] [2615] [INFO] Listening...

Solved. VirtualHost needs: WSGIApplicationGroup %{GLOBAL} Somehow this was not included in our old config. The problem for OP might be python-path= in the config. Thanks Graham for your time.

The WSGIScriptAliasMatch works as well. It does not work without WSGIApplicationGroup.