Open ipfinder opened 5 years ago
Hi
To add dinamyc modules to an existing installation of nginx, the module must be build with the same exact configuration, then you can copy the module library to the modules folder and add the line load_module to the nginx conf file.
nginx -V nginx version: nginx/1.16.0 built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) configure arguments: --add-module=/home/amine/make_nginx/incubator-pagespeed-ngx-1.13.35.2-stable/
This is a "static" module. To add static modules you need to rebuil the whole stack as far as static modules "live" in the nginx executable.
--add-module= --> static
--add-dynamic-module= --> dinamyc
you should build pagespeed as dynamic module --add-dynamic-module=/path/to/pagespeed/src
I have similar LEMP stack built with pagespeed using LEMPer installer
hello guys i have some question about the installation nginx from ubuntu packages and from the source i will do a new website and today a lunch a test my new server LEMP STACK >> nginx from the source it work great i test here is the HTTP reauest look
curl -I -p http://35.xxxxxxxxxxx/ HTTP/1.1 200 OK Server: nginx Content-Type: text/html; charset=UTF-8 Connection: keep-alive Vary: Accept-Encoding Link: <http://35.***************/wp-json/>; rel="https://api.w.org/" Date: Sat, 29 Jun 2019 20:49:06 GMT X-Page-Speed: 1.13.35.2-0 Cache-Control: max-age=0, no-cache
her my problemnginx -V nginx version: nginx/1.16.0 built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11) configure arguments: --add-module=/home/amine/make_nginx/incubator-pagespeed-ngx-1.13.35.2-stable/
no default -V modules her l take a look for the other server show thisnginx version: nginx/1.14.2 built with OpenSSL 1.0.2g 1 Mar 2016 TLS SNI support enabled configure arguments: --with-cc-opt='-g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-stream_ssl_preread_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-u35_og/nginx-1.14.2/debian/modules/http-auth-pam --add-dynamic-module=/build/nginx-u35_og/nginx-1.14.2/debian/modules/http-dav-ext --add-dynamic-module=/build/nginx-u35_og/nginx-1.14.2/debian/modules/http-echo --add-dynamic-module=/build/nginx-u35_og/nginx-1.14.2/debian/modules/http-upstream-fair --add-dynamic-module=/build/nginx-u35_og/nginx-1.14.2/debian/modules/http-subs-filter
how to add new modules without lose the ngx_pagesped modules BTW i add new one is image_watermarke_filter but the ngx_spd gone
thank you guys