Author Topic: i am trying to install brotli module  (Read 2668 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
i am trying to install brotli module
« on: April 30, 2022, 05:40:37 PM »
hello,

I try  installing brotli as per instructions here: https://wiki.centos-webpanel.com/enabling-brotli-compression-on-nginx

however

Apr 30 19:28:57 hostname nginx[11905]: nginx: [emerg] dlopen() "/etc/nginx/modules/ngx_http_brotli_filter_module.so" failed (libbrotlienc.so.1: cannot open shared object file: No such file or directory) in /etc/nginx/nginx.conf:7



[root@s01 modules]# head /etc/nginx/nginx.conf
user nobody;
worker_processes auto;
#worker_rlimit_nofile    65535;
error_log               /var/log/nginx/error.log crit;
pid                     /var/run/nginx.pid;

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


[root@s01 modules]# ls -liah /etc/nginx/modules/
total 28K
79792935 drwxr-xr-x 2 root root  86 Apr 30 19:14 .
75501142 drwxr-xr-x 3 root root  21 Apr 30 17:32 ..
79785643 -rw-r--r-- 1 root root 16K Apr 28  2019 ngx_http_brotli_filter_module.so
79785644 -rw-r--r-- 1 root root 12K Apr 28  2019 ngx_http_brotli_static_module.so

[root@s01 modules]# nginx -v
nginx version: nginx/1.20.2

any idea?



Offline
*
Re: i am trying to install brotli module
« Reply #1 on: May 01, 2022, 07:24:28 PM »
I did it with this tutorial, the only thing I did was to adapt it to Centos 7.
https://www.howtoforge.com/how-to-enable-brotli-compression-in-nginx-on-centos-8/