Welcome to Centmin Mod Community
Become a Member

Nginx PageSpeed ngx_pagespeed 1.12.34.1-beta released

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, Dec 14, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    Update: 1.12.34.2-beta was released for quick bug fix PageSpeed Release Notes  |  PageSpeed Module  |  Google Developers

    ngx_pagespeed 1.12.34.1-beta has been released. Read below for instructions for updating your Centmin Mod Nginx's ngx_pagespeed module integration. Latest centmin mod 123.08stable and 123.09beta01 by default now disable ngx_pagespeed module and remove it's integration out of the box unless you specifically enable it in 123.09beta01 builds via NGINX_PAGESPEED=y.

    The centmin mod 123.09beta01 is only branch that now supports ngx_pagespeed 1.11 branch versions so if you need to enable ngx_pagespeed 1.11, you need to switch and upgrade to latest 123.09beta01 beta via centmin.sh menu option 23 sub menu option 2 or 3.

    Summary



    Basic summary is you have 2 options going forth:

    Option 1

    You actively use ngx_pagespeed and require updating ngx_pagespeed - then you update or switch to Centmin Mod 123.09beta01 branch as 123.08stable doesn't support ngx_pagespeed 1.10+ branch. Once you switch to 123.09beta01 branch confirm centmin.sh has 1.12.34.2 listed for Nginx Pagespeed variables with command
    Code (Text):
    grep 1.12.34 /usr/local/src/centminmod/centmin.sh
    

    and if it doesn't report 1.12.34.2+ versions, use centmin.sh menu option 23 submenu option 2 to update your 123.09beta01 code. Then set in /etc/centminmod/custom_config.inc persistent config file you create or already created and set:
    Code (Text):
    NGINX_PAGESPEED=y
    NGXDYNAMIC_NGXPAGESPEED='y'
    

    and then recompile lastest Nginx version 1.11.7 via centmin.sh menu option 4. Centmin Mod 123.09beta01 change log is here.

    Option 2

    You do not use ngx_pagespeed and want to disable it - then you update to latest Centmin Mod 123.09beta01 branch or update to 123.08stable code via centmin.sh menu option 23 and just then recompile lastest Nginx version 1.11.7 via centmin.sh menu option 4 (which already has NGINX_PAGESPEED=n set out of box)

    Announcement



    From PageSpeed Release Notes | PageSpeed Module | Google Developers

    How to Update ngx_pagespeed



    Best way is to also keep your Centmin Mod code updated as outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS via centmin.sh menu option 23 if possible then you won't need to play with changing version numbers if I already updated the code for the new versions. However, if I have not updated the versions, you can do that yourself using instructions below.

    Both 123.08stable and 123.09beta01 now disable ngx_pagespeed by default, to enable set in /etc/centminmod/custom_config.inc persistent config file you create or already created and set:
    Code (Text):
    NGINX_PAGESPEED=y

    and then recompile Nginx 1.11.4 via centmin.sh menu option 4

    For 123.08stable and nginx versions 1.9.10 and below. Note that 123.08stable ngx_pagespeed support is disabled by default for newer installs due to Nginx 1.9.11+ compatibility issues and ngx_pagespeed 1.10+ or 1.11+ branch is not supported in 123.08stable, so please update to Centmin Mod 123.09beta01 and ngx_pagespeed 1.11 branch

    For 123.09beta01
    Code (Text):
    NGXPGSPEED_VER='1.12.34.1-beta'
    NGINX_PAGESPEEDPSOL_VER='1.12.34.1'
    


    For 123.08stable and nginx versions 1.9.10 and below, update to 123.09beta01 first then added version variables in /etc/centminmod/custom_config.inc persistent config file

    For 123.09beta01 and nginx versions 1.9.11+ and higher, change variables in /etc/centminmod/custom_config.inc persistent config file

    to
    Code (Text):
    NGXPGSPEED_VER='1.12.34.1-beta'
    NGINX_PAGESPEEDPSOL_VER='1.12.34.1'
    


    then recompile nginx via centmin.sh menu option 4 with Nginx version 1.11.7 if using Centmin Mod 123.09beta01

    check that ngx_pagespeed updated version was compiled via nginx -V command

    Switching to 123.09beta01 branch



    Switching to 123.09beta01 branch is easy via centmin.sh menu option 23 submenu option 1 first then submenu option
    3

    [​IMG]
     
    Last edited: Dec 17, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    s-maxage very useful !

     
  4. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    This very forum's ngx_pagespeed instance has been updated to Centmin Mod 123.09beta01 latest Nginx 1.11.7 + ngx_pagespeed 1.12.34.1-beta :D
    nginx 1.11.7 recompiled via centmin.sh menu option 4 with prior set persistent config file /etc/centminmod/custom_config.inc variables to enable dynamic ngx_pagespeed module integration :)
    Code (Text):
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED=y

    Much smaller nginx binary with ngx_pagespeed as a dynamic nginx module instead of static module
    Code (Text):
    ls -lah $(which nginx)
    -rwxr-xr-x 1 root root 4.1M Dec 13 20:56 /usr/local/sbin/nginx

    dynamic nginx modules this forum uses :)
    Code (Text):
    ls -lah /usr/local/nginx/modules | grep -v old
    total 42M
    drwxr-xr-x  2 root root 4.0K Dec 13 20:56 .
    drwxr-xr-x 10 root root 4.0K Feb 18  2016 ..
    -rwxr-xr-x  1 root root 3.1M Dec 13 20:56 ngx_http_brotli_filter_module.so
    -rwxr-xr-x  1 root root 115K Dec 13 20:56 ngx_http_brotli_static_module.so
    -rwxr-xr-x  1 root root 160K Dec 13 20:56 ngx_http_fancyindex_module.so
    -rwxr-xr-x  1 root root 143K Dec 13 20:56 ngx_http_geoip_module.so
    -rwxr-xr-x  1 root root 160K Dec 13 20:56 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root  19M Dec 13 20:56 ngx_pagespeed.so
    -rwxr-xr-x  1 root root 117K Dec 13 20:56 ngx_stream_geoip_module.so
    -rwxr-xr-x  1 root root 1.3M Dec 13 20:56 ngx_stream_module.s


    Report any bugs when you find them on the forums ;)
     
    Last edited: Dec 14, 2016
  5. bassie

    bassie Active Member

    557
    121
    43
    Apr 29, 2016
    Ratings:
    +369
    Local Time:
    10:18 AM
    • Agree Agree x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    indeed i usually manually do this

    but so far ngx_pagespeeds demo page and my own tests show it not working as expected heh
     
  7. bassie

    bassie Active Member

    557
    121
    43
    Apr 29, 2016
    Ratings:
    +369
    Local Time:
    10:18 AM
    Don't know if Pagespeed's filter could work as I don't use Pagespeed anymore.
    But manually works fine.

    As you can review in the image below, (by way of test) selected resources are preloaded, other source files are requested by the web page itself.

    Damn. I need Nginx http / 2 server push.

    [​IMG]
     
    • Agree Agree x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah i was looking for the added headers, i did see then once, but on reloads they were gone again

    1.12.34.2 beta was released for nginx just to fix a bug PageSpeed Release Notes  |  PageSpeed Module  |  Google Developers

     
  9. eva2000

    eva2000 Administrator Staff Member

    30,921
    6,909
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,405
    Local Time:
    7:18 PM
    Nginx 1.13.x
    MariaDB 5.5
    updated to 1.12.34.2-beta
    Code (Text):
    dynamic modules include file /usr/local/nginx/conf/dynamic-modules.conf
    -rw-r--r-- 1 root root 192 Dec 16 14:53 /usr/local/nginx/conf/dynamic-modules.conf
    
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_fancyindex_module.so";
    load_module "modules/ngx_pagespeed.so";
    load_module "modules/ngx_stream_module.so";
    
    dynamic module directory at /usr/local/nginx/modules
    total 22M
    drwxr-xr-x.  2 root root 4.0K Dec 16 14:53 .
    drwxr-xr-x. 10 root root 4.0K Nov 25 08:25 ..
    -rwxr-xr-x   1 root root 151K Dec 16 14:53 ngx_http_fancyindex_module.so
    -rwxr-xr-x   1 root root 143K Dec 13 16:34 ngx_http_fancyindex_module.so.old
    -rwxr-xr-x   1 root root 153K Dec 16 14:53 ngx_http_image_filter_module.so
    -rwxr-xr-x   1 root root 146K Dec 13 16:34 ngx_http_image_filter_module.so.old
    -rwxr-xr-x   1 root root  20M Dec 16 14:53 ngx_pagespeed.so
    -rwxr-xr-x   1 root root 1.2M Dec 16 14:53 ngx_stream_module.so
    -rwxr-xr-x   1 root root 1.2M Dec 13 16:34 ngx_stream_module.so.old
    
    log files saved at /root/centminlogs
    -rw-r--r--  1 root root   44 Dec 16 14:52 centminmod_libresslinstalltime_161216-145235.log
    -rw-r--r--  1 root root    0 Dec 16 14:52 patch_patchnginx_161216-145235.log
    -rw-r--r--  1 root root 1.3K Dec 16 14:53 nginx-configure-161216-145235.log
    -rw-r--r--  1 root root  22K Dec 16 14:53 nginx_autoconf.err.161216-145235.log
    -rw-r--r--  1 root root 838K Dec 16 14:53 centminmod_1.2.3-eva2000.09.001_161216-145235_nginx_upgrade.log
    
    *************************************************
    * nginx updated
    *************************************************
       _   _         _                _   _             _         _             _
      | \ | |  __ _ (_) _ __  __  __ | | | | _ __    __| |  __ _ | |_  ___   __| |
      |  \| | / _` || || '_ \ \ \/ / | | | || '_ \  / _` | / _` || __|/ _ \ / _` |
      | |\  || (_| || || | | | >  <  | |_| || |_) || (_| || (_| || |_|  __/| (_| |
      |_| \_| \__, ||_||_| |_|/_/\_\  \___/ | .__/  \__,_| \__,_| \__|\___| \__,_|
              |___/                         |_|                                  
     
    Total Nginx Upgrade Time: 44.317865823 seconds