• Home
  • WP tuts
  • Hosting talk
    • Free hosting
    • Cheap Hosting
    • comparison cloud , vps, shared, wordpress
    • managed wordpress hosting
    • managed cloud hosting
  • Speed up wordpress
  • Pc world
  • Services
  • About Me

RAaz Kumar .com

wordpress tutorials seo hosting etc

nginx modules list (enable, disable, upgrade, install dynamic module)

how to view loaded modules in nginx

command
nginx-V
it will list nginx version with compiled modules, while installing a module.

static modules:

installed along with nginx install, no way to disable or enable like Apache.

dynamic modules:

available in nginx plus and newer nginx version.
step 1: compile nginx module in same environment like production server.
2nd: test server: used to compile the module. after compiled module available,
3rd: we have to copy the module end .so
/etc/nginx/modules (or other path).
and include in nginx.conf
Loadmodule /path/to-module
nginx module instead of error fix.
if you are using this dynamic module, you will get this (,upgrade failed).
because dynamic module has to recompile along with new nginx version.
/etc/nginx/modules/ngx_http_geoip_module.so
don’t restart or reboot(if nginx unable to start until problem fixed)
temporary fix: unload module by commenting in nginx.conf & start the upgrade
permanent fix: recompile the module with new nginx version /current nginx version.

how to install dynamic module in nginx?

check your nginx version
nginx -v
or upgrade to latest version.
then type nginx -v
download latest version of nginx it should match current production server

#1 download nginx

wget -qO – http://nginx.org/download/nginx-1.18.10.tar.gz | tar zxfv –

#2 download dynamic module

git clone https://github.com/perusio/nginx-hello-world-module.git

#2.1 install build tools if not already

sudo apt-get install unzip gcc make libpcre3-dev zlib1g-dev

#3 compile dynamic module

company & make modules command
cd nginx-1.11.10/
./configure –with-compat –add-dynamic-module=../nginx-hello-world-module
$ make modules

#4. verify the module & copy to nginx directory

by default its available in objs subdirectory
ls objs/*.so
objs/ngx_http_hello_world.so
cp objs/ngx_http_hello_world.so /etc/nginx/modules

#5 upgrade nginx if not done early

service nginx upgrade

#6 edit nginx.conf

loadmodule
,& reload nginx
if you are building it in production server.
it’s better to complie in build environment & copy to production server.
mycase: I already did in production server (but downtime important in case of high traffic)
enable & disable dynamic module in nginx
edit conf file
comment or uncomment
reload nginx server.
also read pagespeed module in nginx as dynamic.
module configuration file would be in nginx.conf or
conf.d modulename.conf

nginx modules location

static modules
 –modules-path=/usr/lib/nginx/modules
dynamic module  /etc/nginx/modules  (shortcut to usr/lib/nginx)

Install nginx without unnecessary  modules

Note: every module has some features, and runs in memory (so uninstall unnecessary modules or install with required module)
–without-module
Lets know about some useful nginx modules

Nginx http core module

 

Module ngx_http_core_module

Keepalive

clientbody, head buffers

etag, if modified since etc

more at here

nginx fastcgi module

fastcgi read timeout to fix 504 timeout nginx

buffers etc.

nginx proxy module

proxy modules and fastcgi directives and variables are same. starts fastcgi_ instead proxy_

proxy module used to backend serer ex use nginx as reverse proxy and load balancer for apache wordpress

all 3 aboe modules necessary to run a nginx server and installed by default with nginx.

 

Memcached & redis modules also available

best modules for nginx third party

WAF security firewall: securing the serer
Pagespeed module for dynamic page optimization
Redis module for object cache
Brotli better than gzip by google
cache purge: ability to purge fastcgi cache
more here

how to enable brotli compression in nginx

$ apt-get install nginx-plus-module-brotli

edit nginx.conf

at top:

load_module modules/ngx_http_brotli_filter_module.so;
load_module modules/ngx_http_brotli_static_module.so;

configurations in  .conf

same as gzip just replacewith brotil.

read more here

____&_____&____&_____&
root@instance-1:~# nginx -V
nginx version: nginx/1.13.8
built by gcc 6.3.0 20170516 (Debian 6.3.0-18)
built with OpenSSL 1.1.0f  25 May 2017
TLS SNI support enabled
configure arguments: –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –modules-p                                                                                        ath=/usr/lib/nginx/modules –conf-path=/etc/nginx/nginx.conf –error-log-path=/v                                                                                        ar/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var                                                                                        /run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/var                                                                                        /cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –ht                                                                                        tp-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temp-path=/var/c                                                                                        ache/nginx/uwsgi_temp –http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=ng                                                                                        inx –group=nginx –with-compat –with-file-aio –with-threads –with-http_addit                                                                                        ion_module –with-http_auth_request_module –with-http_dav_module –with-http_fl                                                                                        v_module –with-http_gunzip_module –with-http_gzip_static_module –with-http_mp                                                                                        4_module –with-http_random_index_module –with-http_realip_module –with-http_s                                                                                        ecure_link_module –with-http_slice_module –with-http_ssl_module –with-http_st                                                                                        ub_status_module –with-http_sub_module –with-http_v2_module –with-mail –with                                                                                        -mail_ssl_module –with-stream –with-stream_realip_module –with-stream_ssl_mod                                                                                        ule –with-stream_ssl_preread_module –with-cc-opt=’-g -O2 -fdebug-prefix-map=/d                                                                                        ata/builder/debuild/nginx-1.13.8/debian/debuild-base/nginx-1.13.8=. -specs=/usr/                                                                                        share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format                                                                                        -security -Wp,-D_FORTIFY_SOURCE=2 -fPIC’ –with-ld-opt=’-specs=/usr/share/dpkg/n                                                                                        o-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,–as-needed -pie’
root@instance-1:~#

Nginx modules which are installed by default

 

./configure
–prefix=/etc/nginx \
–sbin-path=/usr/sbin/nginx \
–modules-path=/usr/lib/nginx/modules \
–conf-path=/etc/nginx/nginx.conf \
–error-log-path=/var/log/nginx/error.log \
–http-log-path=/var/log/nginx/access.log \
–pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock \
–http-client-body-temp-path=/var/cache/nginx/client_temp \
–http-proxy-temp-path=/var/cache/nginx/proxy_temp \
–http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
–http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
–http-scgi-temp-path=/var/cache/nginx/scgi_temp \
–user=nginx –group=nginx \
–add-module=/root/incubator-pagespeed-ngx-latest-stable \
–with-compat \
–with-file-aio \
–with-threads \
–with-http_addition_module \
–with-http_auth_request_module \
–with-http_dav_module \
–with-http_flv_module \
–with-http_gunzip_module \
–with-http_gzip_static_module \
–with-http_mp4_module \
–with-http_random_index_module \
–with-http_realip_module \
–with-http_secure_link_module \
–with-http_slice_module \
–with-http_ssl_module \
–with-http_sub_status_module \
–with-http_sub_module \
–with-http_v2_module –with-mail \
–with-mail_ssl_module \
–with-stream \
–with-stream_realip_module \
–with-stream_ssl_module \
–with-stream_ssl_preread_module \
–with-cc-opt=’-g -O2 \
configure arguments: –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –modules-p                                                                                        ath=/usr/lib/nginx/modules –conf-path=/etc/nginx/nginx.conf –error-log-path=/v                                                                                        ar/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var                                                                                        /run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/var                                                                                        /cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –ht                                                                                        tp-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temp-path=/var/c                                                                                        ache/nginx/uwsgi_temp –http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=ng                                                                                        inx –group=nginx –with-compat –with-file-aio –with-threads –with-http_addit                                                                                        ion_module –with-http_auth_request_module –with-http_dav_module –with-http_fl                                                                                        v_module –with-http_gunzip_module –with-http_gzip_static_module –with-http_mp                                                                                        4_module –with-http_random_index_module –with-http_realip_module –with-http_s                                                                                        ecure_link_module –with-http_slice_module –with-http_ssl_module –with-http_st                                                                                        ub_status_module –with-http_sub_module –with-http_v2_module –with-mail –with                                                                                        -mail_ssl_module –with-stream –with-stream_realip_module –with-stream_ssl_mod                                                                                        ule –with-stream_ssl_preread_module –with-cc-opt=’-g -O2 -fdebug-prefix-map=/d                                                                                        ata/builder/debuild/nginx-1.13.9/debian/debuild-base/nginx-1.13.9=. -specs=/usr/                                                                                        share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format                                                                                        -security -Wp,-D_FORTIFY_SOURCE=2 -fPIC’ –with-ld-opt=’-specs=/usr/share/dpkg/n                                                                                        o-pie-link.specs -Wl,-z,relro -Wl,-z,now -Wl,–as-needed -pie’

Related topics:

  1. enable brotli compression nginx brotli vs gzip
  2. enable caching in apache server (mod cache disk cache) vs fastcgi cache
  3. apache modules list (explained, enable disable)
  4. Pagespeed module install, configure, monitor, errors ft nginx &apache
  5. PHP performance tuning nginx php-fpm conf pool manger dynamic vs static vs on demand




tutorials

  • Android Studio tutorials syllabus Topics Course details #AndroidApplicationDevelopment
  • xampp tutorials 2021 installation errors fix wordpress phpmyadmin mysql apache
  • Devops Syllabus topics PDF
  • CCNA Syllabus pdf (CCNA / CCNP vs devops vs mcsa /MCSE)
  • how to create a website free of cost on google
  • what is vpn vs proxy vs tor, http vs https, http2, tcp vs udp, kali linux sql source code injection
  • nginx server tutorials (installation, configuration, performance tuning, security)
    • nginx modules list (enable, disable, upgrade, install dynamic module)
    • monitor nginx request with nginx status amplify datadog new relic
    • nginx installation on ubuntu 20.04 LTS
    • Redis performance metrics & tuning for nginx apache ubuntu & debian
    • enable brotli compression nginx brotli vs gzip
    • nginx performance tuning
    • Top 10 tips to improve nginx server security
    • letsencrypt install configure on ubuntu / debian nginx
    • what is TTFB & how to Reduce it (server response time) Google pagespeed
    • enable php fpm status page, monitor & understand the report to tweak performance
    • 2021 php fpm pool manager configuration settings based on server spike
    • Letsencrypt SSL Installation on apache/Nginx ubuntu / debian
    • nginx rewrite rules with examples 301 redirection
    • use nginx as reverse proxy and load balancer for apache wordpress
    • nginx conf explained best config file performance tuning nginx.conf
    • nginx errors (504,502, 413, unable to start, syntax errors)
    • Pagespeed module install, configure, monitor, errors ft nginx &apache
    • Apache vs nginx (connection handling, modules, memory usage)
    • install lemp Linux, Nginx 1.15.12, MySQL 8, PHP fpm 7.3 on Ubuntu 18.04
    • nginx fastcgi cache wordpress how to configure
    • Redis / memcached installation on ubuntu 20.04 with wordpress mysql configuration
    • cloudflare timeout error 522 524 fix by increasing limit
  • Vivek Bindra Videos Transcription (business strategy)
  • AUdio Editing Background Noise removal (Audacity, Adobe Premiere Addition, Camtasia Filmora Windows Obs)
  • MySQL Tutorial (create,connect database, update tables, export etc) Documentation & TIPS
  • [INTRO] Ethical hacking / cyber Security / Penetration testing Tutorial -{updates frequently}
  • ubuntu tutorials installation download issues etc
  • Php tutorials
  • HTML & CSS Tutorials
  • Core Java Tutorial Free online
  • Linux sysadmin tutorials linux system administrator
  • apache server tutorial (install,config, performance tuning, security, error handling)

About

 

raaz kumar comI am Raaz Kumar, Most Of the time in a day , I Spend on WordPress, Hosting, Server related issues, So i decided write clean posts from my personal notes, so it will be useful for every one like me. Read More,,

Please Support my work by sharing, it can helps to create free content like this.

Twitter

Facebook

Youtube

 

PUBG Mobile Tips & Tricks

free fire how to play (a-z guide) guns, tips & tricks etc

Windows 10 tips & tricks

Pagespeed optimization

Pc building tips & tricks

nginx server tutorials

apache server tutorials

linux sysadmin tutorials

mysql Commands list pdf

Android studio tutorials

Gaming/ streaming tips

Airtel dth channel list

 

wordpress

 

Top 5  WP Google Analytics Plugins

WP Backup Plugins

Wp Comment Plugins

Top wordpress Security Plugins

WP Seo Plugins

WP Caching Plugins

Best Adsense Plugins for WordPress

Wp social Sharing Plugins

autoshare social media plugins

WP speed Optimization Plugins

Speedup WordPress google Score

More Wp tuts

Server Admin Cloud

 

Installing Nginx LEMP On ubuntu

Installing apache Lamp ubuntu

nginx fastcgi cache enable

php – fpm install  & Configuration

Opcache install & Configure

php -fpm pool manager explained

Mysql Install & Configuration

Redis Object cache install & configure

 

Nginx as Reverse Proxy and Load balancer

Load Balance / auto scaling in google cloud

Linux Commands PDF

Mysql Commands Pdf

Letsencrypt tutorial

mysqldump export & import 

Pagespeed Module install & configure

nginx.conf best file

mysql.conf best file

upgrade ubuntu

© 2021 - All Rights Reserved Disclaimer & Privacy Policy