How to compile mod_proxy_uwsgi or mod_uwsgi?

So, I'm trying to use uwsgi for apache2, but I do it on a CentOS 6 machine. (I use Debian / Ubuntu based systems for context.)

I used pip install uwsgi and followed the instructions for starting uwsgi using the Django application (via http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html ).

I started configuring apache2 at http://uwsgi-docs.readthedocs.org/en/latest/Apache.html , but it says nothing about where to get it or how to build mod_uwsgi or mod_proxy_uwsgi. mod_uwsgi.so is definitely not on the system. Any suggestions?

+6
source share
1 answer

It is located right at the top of the module source:

 To build: apxs2 -i -c mod_proxy_uwsgi.c 

Apxs2 is specific to Apache-2.2, and it can be called apxs on some Unix. For example, on CentOS 6:

 $ rpm -q -f `which apxs` httpd-devel-2.2.15-28.el6.centos.x86_64 
+6
source

Source: https://habr.com/ru/post/948506/


All Articles