• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved NO ngx_http_passenger_module

Hi @UFHH01 Oh, I can't believe it. It ran over 2 or 3 minutes by "make". All seemed perfectly, but in the very end an error appeared.

Code:
-o objs/addon/src/ngx_message_handler.o \
        /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_message_handler.cc
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g   -D_GLIBCXX_USE_CXX11_ABI=0 --std=c++11  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/src/openssl-1.0.2l/.openssl/include -I /usr/include/libxml2 -I objs -I src/http -I src/http/modules -I src/http/v2 -I src/http/modules/perl -I /usr/share/passenger/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/chromium/src -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/google-sparsehash/src/src -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/google-sparsehash/gen/arch/linux/x64/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/grpc/src/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/protobuf/src/src -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/re2/src -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/out/Release/obj/gen -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/out/Release/obj/gen/protoc_out/instaweb -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/apr/src/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/aprutil/src/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/apr/gen/arch/linux/x64/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/url -I src/mail -I src/stream \
        -o objs/addon/src/ngx_pagespeed.o \
        /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc
/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc: In function ‘ngx_int_t net_instaweb::{anonymous}::ps_preaccess_handler(ngx_http_request_t*)’:
/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc:3011:31: error: ‘ngx_http_core_try_files_phase’ was not declared in this scope
   while (ph[i + 1].checker != ngx_http_core_try_files_phase &&
                               ^
objs/Makefile:1967: recipe for target 'objs/addon/src/ngx_pagespeed.o' failed
make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory '/root/addons/nginx/nginx-1.13.4'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
root@server:~/addons/nginx/nginx-1.13.4# ^C
root@server:~/addons/nginx/nginx-1.13.4#
 
Hi @UFHH01
ngx_pagespeed.cc error was eliminated by content of this fix. I tried also with the changed source in the master branch from Github. But like last night a new error occured with "standby".
Code:
nx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/apr/src/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/aprutil/src/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/apr/gen/arch/linux/x64/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/third_party/aprutil/gen/arch/linux/x64/include -I /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/psol/include/url -I src/mail -I src/stream \
        -o objs/addon/src/ngx_pagespeed.o \
        /usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc
/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc: In function ‘char* net_instaweb::{anonymous}::ps_merge_srv_conf(ngx_conf_t*, void*, void*)’:
/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable/src/ngx_pagespeed.cc:1164:53: error: ‘class net_instaweb::RewriteOptions’ has no member named ‘standby’
       if (!cfg_s->server_context->global_options()->standby()) {
                                                     ^
objs/Makefile:1967: recipe for target 'objs/addon/src/ngx_pagespeed.o' failed
make[1]: *** [objs/addon/src/ngx_pagespeed.o] Error 1
make[1]: Leaving directory '/root/addons/nginx/nginx-1.13.4'
Makefile:8: recipe for target 'build' failed
make: *** [build] Error 2
root@server:~/addons/nginx/nginx-1.13.4#


I watched this issue (only 5days old) from member netsafe and kronflux. Otto mentioned that he build against master there is a little possibility to fix it.. Seems that I also do this.
Would be great if You can help me further. I thought about the possibility to replace all sources files with the actual github files, but the problem seems only in this only file ngx_pagespeed.cc in (/src/), or to post it in Github.

Greets
 
Last edited:
Apart from that, I can't see any reason, why you don't just follow the tutorial ( with WORKING, stable releases )
Hi @UFHH01 Which releases do you mean exactly? I think you mean only the package ngx_pagespeed, or? Because I used the stable ones.

You don't mean using "all" releases from your tutorial, or am I wrong? I used the newest ones in order to prevent issues. Would be great if you can tell me which stable releases to you mean.
nginx-1.13.2.tar.gz or instead of: nginx-1.13.4.tar.gz (also mainline stable 1.12.1 would be possible)

and perhaps, if it is necessary, also modules, "only module ngx_pagespeed-XXX", should be replaced. Because this is the one which is on focus and needs to be adjusted.
ngx_cache_purge-2.3 \
ngx_slowfs_cache-1.10 \
ngx_pagespeed-1.12.34.2-beta <----
ngx_cache_purge-2.3 \
ngx_slowfs_cache-1.10 \
ngx_coolkit-0.2rc3 \
ngx_headers-more-0.32


instead of: I used the following:
ngx_cache_purge-2.3 \
ngx_slowfs_cache-1.10 \
ngx_pagespeed-1.12.34.2-stable
ngx_cache_purge-2.3 \
ngx_slowfs_cache-1.10 \
ngx_coolkit-0.2 \
ngx_headers-more-0.32

Greets

Additional:
By changing the main nginx-version, it would be also necessary to adjust sources.list (/etc/apt/sources.list) or better create a new sources file in /etc/apt/sources.list.d except it's contra-productive for Plesk.

 
Last edited:
Hi @ YESSSSSSSSS it worked with nginx-1.13.2 and
Code:
wget https://github.com/pagespeed/ngx_pagespeed/archive/v1.12.34.2-stable.tar.gz

I never give up when there is only a little chance to make something better. THANKS for your hard work with me @UFHH01 and @IgorG I know it was a touch too much on questions.

here is my output of # nginx -V
Code:
root@server:~# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
root@server:~# nginx -V
nginx version: nginx/1.13.2
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
built with OpenSSL 1.0.2l  25 May 2017
TLS SNI support enabled
configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --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 --user=nginx --group=nginx --with-debug --with-file-aio --with-google_perftools_module --with-ipv6 --with-mail --with-mail_ssl_module --with-threads --with-select_module --with-stream --with-stream_ssl_module --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_mp4_module --with-http_perl_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_stub_status_module --with-http_sub_module --with-http_ssl_module --with-openssl=/usr/src/openssl-1.0.2l --with-http_v2_module --with-http_xslt_module --with-poll_module --add-module=/usr/share/passenger/ngx_http_passenger_module --add-module=/usr/share/nginx/modules/ngx_pagespeed-1.12.34.2-stable
root@server:~#

Now, I look if You or someone already has written a little help to configure this beast. The last days I stumbled about google's own pagespeed support/help pages. But at that time I was far away from looking closer.
Aaaand Brotli and Zopfli coming at the playing scene... Otherwise I better open threads in off-topics about it.
 
Hi @ YESSSSSSSSS it worked with nginx-1.13.2 and
Sorry, @UFHH01 I've a little, little question about it. All configure arguments in the box above are --with..module..yxz. except the last 2 ones. there is --add-module...passenger, and --add-module...pagespeed.
Does it means I have to install them seperatly or have to do something with them (adding)...or is this the normal output?

Greets
 
Last edited:
Back
Top