Some days ago i had installed nginx with rtmp module.
When i did nginx -V i got:
nginx version: nginx/1.10.3
built with OpenSSL 1.1.0f 25 May 2017
TLS SNI support enabled
configure arguments: <alot of text> --add-module=/home/administrator/nginx/nginx-rtmp-module-master
And after i add rtmp block in nginx.conf i got no errors.
Today i tried to continue my work. Restart serveice and got en error:
unknown derective "rtmp" in /etc/nginx/nginx.conf:6
I check modules nginx -V and not found rtmp module i mean this string:
--add-module=/home/administrator/nginx/nginx-rtmp-module-master
Whats heppens? How module can dissapiered?
Related
I am following this guide https://www.vultr.com/docs/add-brotli-support-to-nginx-on-ubuntu-18-04
I have followed every step but I am stuck at Step 4 – Configure Nginx
When I add to nginx.conf
load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;
I get this error after running sudo nginx -t:
nginx: [emerg] dlopen() "/usr/share/nginx/modules/ngx_http_brotli_filter_module.so" failed (/usr/share/nginx/modules/ngx_http_brotli_filter_module.so: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed
What might cause that?
Thank you!
Hosting provider: DigitalOcean
Server running: Ubuntu 20.04 LEMP
Nginx version: 1.17.10
I had the same issue 2 years back and after a lot of reading and research got it working.
Hope this helps.
I have provided step by step instruction in the answer.
ngx_http_brotli_filter_module.so" is not binary compatible in /etc/nginx/nginx.conf:1
I have a custom build of tengine, which is a fork of nginx. I built it with the options
--prefix=/home/gaurav/projects/tengine_custom/BUILD --add-module=/home/gaurav/projects/tengine_custom/nginx-rtmp-module --with-jemalloc --without-http_fastcgi_module --without-http_uwsgi_module --without-http_scgi_module
nginx -V ouputs the following:
Tengine version: Tengine/2.3.2
nginx version: nginx/1.17.3
built by gcc 9.3.0 (Arch Linux 9.3.0-1)
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
Running the binary results in the following:
nginx: [emerg] invalid IPv6 address in resolver "[fe80::1%wlo1]" in /home/gaurav/projects/tengine_custom/BUILD/conf/nginx.conf:137
I tried googling but turned up nothing. Can somebody help me with this?
Config file: https://pastebin.com/yUtrcwUF
Add --with-ipv6 to your build options.
So I was trying some settings of the Nginx PageSpeed module, but there was two settings that I couldn't set for some reason.
pagespeed NumRewriteThreads 2;
pagespeed NumExpensiveRewriteThreads 2;
For some reason these two settings always throw error when I try to restart or test my nginx config.
sudo service nginx restart
[FAIL] Restarting nginx: nginx failed!
When I test the file I get this:
"pagespeed" directive "NumRewriteThreads" not recognized or too many arguments in /etc/nginx/nginx.conf:40
nginx: configuration file /etc/nginx/nginx.conf test failed
My Nginx version is the following:
sudo /usr/sbin/nginx -v
nginx version: nginx/1.6.0
The settings appear in the PageSpeed docs as well, so I'm wondering if there's something I am missing to make them work.
https://developers.google.com/speed/pagespeed/module/system#tune_thread
I've entered a bug for this: ngx_pagespeed #728. I think it's just an oversight.
The ngx_echo module isn't included when I install nginx by:
sudo port install nginx
I looked at the portfile and the variants are:
addition dav debug flv geoip google_perftools gzip_static ipv6 mail perl5 realip redis secure_download ssl status substitution upload zip
Is ngx_echo included in any of those options?
I compiled it using macports as mentioned in the link below
https://serverfault.com/questions/328416/how-to-set-random-value-in-the-specified-range-in-variable/347191#347191
On Ubuntu with REE 1.8.7, with nginx 0.8.53 manually compiled with the
Passenger 3 module doc installed as per the docs, I get an error in
the nginx error log when nginx starts:
Unable to start the Phusion Passenger watchdog because it encountered
the following error during startup: Unable to start the Phusion
Passenger logging agent: an error occurred while sending startup
arguments: Broken pipe (32) (-1: Unknown error 18446744073709551615)
I assume this means nginx never starts properly. When I try and view
my site after this, I get a 403.
2010/10/22 00:56:47 [error] 13874#0: *1813942 directory index of "/var/
rails/myapp/current/public/" is forbidden, client: 125.197.115.16,
server: new.myapp.fm, request: "GET / HTTP/1.1", host: "new.myapp.fm"
I expect the first is probably causing the second. I haven't had any
luck googling this. Can anyone provide insight or help me
troubleshoot?
I got this after upgrading to Passenger 3.0.1 as I had not changed the version of Passenger specified by passenger_root in /opt/nginx/conf/nginx.conf. You might need to change the line that looks like this to specify the correct version:
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-3.0.1;
You get told to do this when you install nginx. Hope that helps.
I ran into this problem too, and it was because passenger couldn't find ruby:
tail -f /var/log/nginx/error.log
2011/12/20 00:54:45 [alert] 30300#0: Unable to start the Phusion Passenger watchdog because it encountered the following error during startup: Unable to start the Phusion Passenger helper agent: it seems to have crashed during startup for an unknown reason, with exit code 1 (-1: Unknown error)
* Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:220):
Could not start the spawn server: ruby: No such file or directory (2)
Even though ruby was properly listed within the system PATH, it didn't seem to work right until I added:
passenger_ruby = /usr/local/bin/ruby;
(the location of my ruby executable) into the http section of my nginx config.
The problem was that PassengerLoggingAgent wasn't installed when I did 'gem install passenger'. I installed it as per this discussion (by grabbing it from the standalone zip) and everything is fine now: http://groups.google.com/group/phusion-passenger/browse_thread/thread/323dc1c7b0e5ee11