Background:
I am in the process of deploying a Django site and from my understanding and research, I needed to get a web server, a WSGI protocol interface to actually run said python code and 'communicate' with it, and lastly a reverse proxy server to tie the two together and pass HTTP requests through the pipeline to Django. (By virtue of my install method, mod_wsgi
is not an option thanks to EasyApache4 and cPanel so I cannot use the mod_wsgi
sockets method)
My problem:
I have organized an apache 2 hosting server and managed to install mod_proxy
and mod_proxy_uWSGI
using the EasyApache4 auto installer. From what I understand, now I need to set up the proxy system to relay HTTP requests through mod_proxy_uWSGI
which doubles up and also runs my Django site, however, I cannot access or configure mod_proxy_uWSGI
. When I try using the following style command (sorry, I don't want my server URLs floating around the internet):
uwsgi --http :8000 --wsgi-file test.py
I get an error message:
bash: uwsgi: command not found
Am I missing something?
pip install
orapt-get
– Hands