I have installed Nginx in our redhat machine using rpm. Now we want to add nginx-rtmp module, but inorder to add new module as per the document i need to build it by downloading the tar ball. Does it mean that i have to remove the rpm and install it as per the document.

Ref: https://github.com/arut/nginx-rtmp-module/wiki/Getting-started-with-nginx-rtmp

./configure --add-module=/usr/build/nginx-rtmp-module
make
make install

asked Apr 17, 2013 at 1:04

user1595858's user avatar

user1595858user1595858

3,89017 gold badges72 silver badges111 bronze badges

Unlike Apache, all modules, including the 3rd party modules, are going to be compiled into nginx. So every time you want to add a new module, you have to recompile nginx.

So yes, you have to install it as per the document. There is no much value of keeping 2 nginx runtimes on the same server any way. So you may also want to remove the previous nginx.

answered Apr 17, 2013 at 2:37

Chuan Ma's user avatar

Chuan MaChuan Ma

9,9242 gold badges48 silver badges37 bronze badges

5

I had a similar problem where the auth-pam module broke after an upgrade. Here's what fixed it for me (debian stretch/sid, nginx 1.10.2):

apt install libnginx-mod-http-auth-pam
ln -s /usr/share/nginx/modules-available/mod-http-auth-pam.conf /etc/nginx/modules-enabled/50-mod-http-auth-pam.conf

The config file contains a single “load_module” directive which tells nginx to dynamically load the module on startup. As jekennedy mentioned, this would only apply to newer versions of nginx that support dynamic module loading.

Community's user avatar

answered Nov 30, 2016 at 20:57

campkeith's user avatar

campkeithcampkeith

6828 silver badges10 bronze badges

0

Yes, you have to uninstall nginx (installed via rpm) and re-install it according to the mentioned document that is from source file. There are some disadvantages of installing nginx using source, like you cannot use nginx as a service. Here, you can find instructions to do same thing with all the functionalities you get while installing nginx using OS-respective packages.

answered May 3, 2016 at 12:09

Rohini Choudhary's user avatar

Rohini ChoudharyRohini Choudhary

2,4732 gold badges23 silver badges31 bronze badges

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.