After pip installing uWSGI there's no /etc/uwsgi/ directory - how can I use apps-enabled? After pip installing uWSGI there's no /etc/uwsgi/ directory - how can I use apps-enabled? django django

After pip installing uWSGI there's no /etc/uwsgi/ directory - how can I use apps-enabled?


Sorry for this very late reply, but maybe this will help people who'll find this answer in the future:

To get /etc/uwsgi etc, you need to install the uwsgi package from Debian or Ubuntu (whatever you are using) by running aptitutde install uwsgi. However this will by default probably install an ancient version of uwsgi! The uwsgi binary is placed in /usr/bin/uwsgi when installing uwsgi this way.

To get the latest version, also install uwsgi using pip using pip install -U uwsgi, which (on my Ubuntu system at least) will put the uwsgi binary in /usr/local/bin/uwsgi then go do the following:

cd /usr/bin/

mv uwsgi uwsgi-old

ln -s /usr/local/bin/uwsgi uwsgi

Alternatively: edit the uwsgi init script and edit the DAEMON="/usr/bin/uwsgi" appropriately.

Et voila: "debianism" (full init scripts, etc) and the latest uwsgi binary!


/etc/uwsgi and friends is a 'debianism'. The uWSGI project is all about the sysadmin taste, so if you like the /etc/uwsgi approach just create the directory, drop config files in it and start the uWSGI Emperor to manage instances.