Welcome! Log In Create A New Profile

Advanced

newbie: nginx rtmp module

Posted by neuronetv 
neuronetv
newbie: nginx rtmp module
March 07, 2018 09:30AM
I'm running centos 6 and installed nginx using 'yum install nginx'. Videos
are not working and I don't know whether I have the rtmp module or not. Here
is the text from the yum install:

Installing:
collectd-nginx x86_64
4.10.9-4.el6 epel 14 k
munin-nginx noarch
2.0.33-1.el6 epel 26 k
nginx x86_64
1.10.2-1.el6 epel 462 k
nginx-all-modules noarch
1.10.2-1.el6 epel 7.7 k
nginx-filesystem noarch
1.10.2-1.el6 epel 8.5 k
<snip>

It says 'nginx-all-modules' on the 4th line but no other clue. Is there a
way to tell if I have the rtmp module? If I don't have it is there a way to
install it?

extra info: I did previously install nginx using the nginx-1.13.9.tar.gz
tarball and also installed the nginx rtmp module from the git clone and it
worked but i couldn't get nginx to work with multiple domains using that
install. Should I go back to the tarball install? or is there a way to get
rtmp working with my current 'yum' install? Thanks for any help.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278950#msg-278950

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Gary
Re: newbie: nginx rtmp module
March 07, 2018 10:20AM
nginx - V
will show what modules are installed.




  Original Message  
From: nginx-forum@forum.nginx.org
Sent: March 7, 2018 12:24 AM
To: nginx@nginx.org
Reply-to: nginx@nginx.org
Subject: newbie: nginx rtmp module

I'm running centos 6 and installed nginx using 'yum install nginx'. Videos
are not working and I don't know whether I have the rtmp module or not. Here
is the text from the yum install:

Installing:
collectd-nginx                             x86_64              
4.10.9-4.el6                         epel                         14 k
munin-nginx                                noarch              
2.0.33-1.el6                         epel                         26 k
nginx                                      x86_64              
1.10.2-1.el6                         epel                        462 k
nginx-all-modules                          noarch              
1.10.2-1.el6                         epel                        7.7 k
nginx-filesystem                           noarch              
1.10.2-1.el6                         epel                        8.5 k
<snip>

It says 'nginx-all-modules'  on the 4th line but no other clue. Is there a
way to tell if I have the rtmp module? If I don't have it is there a way to
install it?

extra info: I did previously install nginx using the nginx-1.13.9.tar.gz
tarball and also installed the nginx rtmp module from the git clone and it


...
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 07, 2018 11:00AM
thankyou for your feedback gariac.

# nginx - V
nginx: invalid option: "V"

I think this may be because I have the 'yum install' version of nginx and
not the tarball. TIA for any further ideas.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278952#msg-278952

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Gary
Re: newbie: nginx rtmp module
March 07, 2018 11:10AM
Grrr that swift keyboard. There is no space before the capital V.

nginx -V

I'd be surprised if that command doesn't work now. Any reason you haven't upgraded to Centos 7?



  Original Message  
From: nginx-forum@forum.nginx.org
Sent: March 7, 2018 1:53 AM
To: nginx@nginx.org
Reply-to: nginx@nginx.org
Subject: Re: newbie: nginx rtmp module

thankyou for your feedback gariac.

# nginx - V
nginx: invalid option: "V"

I think this may be because I have the 'yum install' version of nginx and
not the tarball. TIA for any further ideas.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278952#msg-278952

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 08, 2018 11:50AM
thankyou for that.

------------------------
# nginx -V
nginx version: nginx/1.10.2
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
built with OpenSSL 1.0.1e-fips 11 Feb 2013
TLS SNI support enabled
configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx
--modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi
--http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/var/run/nginx.pid
--lock-path=/var/lock/subsys/nginx --user=nginx --group=nginx
--with-file-aio --with-ipv6 --with-http_ssl_module --with-http_v2_module
--with-http_realip_module --with-http_addition_module
--with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic
--with-http_geoip_module=dynamic --with-http_sub_module
--with-http_dav_module --with-http_flv_module --with-http_mp4_module
--with-http_gunzip_module --with-http_gzip_static_module
--with-http_random_index_module --with-http_secure_link_module
--with-http_degradation_module --with-http_slice_module
--with-http_stub_status_module --with-http_perl_module=dynamic
--with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit
--with-stream=dynamic --with-stream_ssl_module --with-debug
--with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--with-ld-opt=' -Wl,-E'
----------------------------

hmmm...can't see rtmp in there anywhere.
I'm running nginx on a centos 6 vps and its taken me ages to get the system
up and running properly, so it's a case of 'if it ain't broke don't fix it'.
Although you've got me thinking now...

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278971#msg-278971

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 09, 2018 06:10PM
I've resigned myself to the fact that there is no rtmp module here which
leads me to the obvious question:

is it possible to install an rtmp module into this 'yum install' version of
nginx?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278984#msg-278984

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Gary
Re: newbie: nginx rtmp module
March 09, 2018 11:20PM
I believe you need to compile with the appropriate module. If this was freeBSD, no problem. Just use ports. (Of course FreeBSD has many other problems.) With centos, you will need to compile the code and use all the "with" options for each module you want to install. Potentially you will need to set up systemd to run your version of Nginx. It wouldn't surprise me that this is complicated enough that someone had already done a write up.

Regarding updating to Centos 7, if you are on VPS, you can easily image your Centos 6 installation should you get bogged down in the update. Or you set up a second VPS on a fresh install of centos 7 with a different domain name. That is how a currently do major changes. However I'm thinking I might set up DNS so that www1.example.com go to the experimental server. That would save the cost of owning an additional domain plus make it easier to deal with let'sencrypt.

I found this:

https://github.com/thonatos/notes/blob/master/backend-notes/install-and-conf-nginx-with-rtmp-on-Centos-7-64.md

This isn't up to date, but it is a start. Looking at the Nginx download page, they don't use git for source, but there is a mirror of sorts of the Nginx source on github. It would do that for both the source and module.

But the deal with Centos is you shouldn't be compiling code unless there is no other alternative. That is the idea is you do "yum update" and everything is secure. I don't go so far as to crontab the process, but some do. The point here being maybe there is some other way to rtmp without the module.

  Original Message  
From: nginx-forum@forum.nginx.org
Sent: March 9, 2018 8:59 AM
To: nginx@nginx.org
Reply-to: nginx@nginx.org
Subject: Re: newbie: nginx rtmp module

I've resigned myself to the fact that there is no rtmp module here which
leads me to the obvious question:

is it possible to install an rtmp module into this 'yum install' version of
nginx?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278984#msg-278984

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
I had a few neurons fire. I forgot nginx can load dynamic modules.

https://www.nginx.com/blog/nginx-dynamic-modules-how-they-work/

I haven't done this myself, so you are on your own at this point.


On Fri, 09 Mar 2018 11:59:30 -0500
"neuronetv" <[email protected]> wrote:

> I've resigned myself to the fact that there is no rtmp module here
> which leads me to the obvious question:
>
> is it possible to install an rtmp module into this 'yum install'
> version of nginx?
>
> Posted at Nginx Forum:
> https://forum.nginx.org/read.php?2,278950,278984#msg-278984
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 10, 2018 10:10AM
thanks again for your feedback on this thread and I see now I will have to
strip out the 'yum install' and re-compile nginx like I did before. I was
able to configure in the rtmp module using that method and video streaming
worked. The 'aaaarrrgh' bit is just working out how to get the compiled
install to serve multiple domains.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278989#msg-278989

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Gary
Re: newbie: nginx rtmp module
March 10, 2018 05:30PM
I believe you shouldn't have to compile Nginx but use the disty binary. Then you do the dynamic load trick. This way you can do "yum update" periodically without having to compile Nginx, but rather just download the latest binary.

However don't break what is working!


  Original Message  
From: nginx-forum@forum.nginx.org
Sent: March 10, 2018 1:08 AM
To: nginx@nginx.org
Reply-to: nginx@nginx.org
Subject: Re: newbie: nginx rtmp module

thanks again for your feedback on this thread and I see now I will have to
strip out the 'yum install' and re-compile nginx like I did before. I was
able to configure in the rtmp module using that method and video streaming
worked. The 'aaaarrrgh' bit is just working out how to get the compiled
install to serve multiple domains.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278989#msg-278989

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 10, 2018 06:00PM
hi sorry but I'm not quite clear. You said 'you shouldn't have to compile
Nginx but use the disty binary'. I'm not sure what the disty binary is. Do
you mean installing from the nginx repo at
http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm?
or from the latest tarball?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278991#msg-278991

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Gary
Re: newbie: nginx rtmp module
March 10, 2018 06:30PM
Yum install nginx
gets you the binary. I'm not really sure how the dynamic module load works, but my understanding (or perhaps lack thereof) means you supplement the precompiled binary with the module.

Solve your other problems first, then you can investigate this if you want to beat your head against the wall some more.

Once you figure the dynamic module load, you could do a post about how it works. I often do this just so I can find my old post if I have trouble doing the same thing a year or two later.

Presumably once you figure this out, your transition to Centos 7 will be easier.


  Original Message  
From: nginx-forum@forum.nginx.org
Sent: March 10, 2018 8:58 AM
To: nginx@nginx.org
Reply-to: nginx@nginx.org
Subject: Re: newbie: nginx rtmp module

hi sorry but I'm not quite clear. You said 'you shouldn't have to compile
Nginx but use the disty binary'. I'm not sure what the disty binary is. Do
you mean installing from the nginx repo at
http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm?
or from the latest tarball?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278991#msg-278991

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
neuronetv
Re: newbie: nginx rtmp module
March 10, 2018 07:10PM
yes I've uninstalled nginx and reinstalled, this time using the nginx repo
and it gave me a newer version but still no rtmp module to be seen.
Fortunately I've solved my other problems but nginx is no good to me without
rtmp as I have to do video streaming, this is my whole reason for migrating
from apache to nginx. I'm struggling to understand the dynamic modules page
(thanks for that link) and I'm not even sure it applies to a 'yum install'
version as it refers to configuring the module into nginx during the build.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,278950,278993#msg-278993

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login