Welcome to Centmin Mod Community
Register Now

Nginx PageSpeed Nginx PageSpeed 1.13.35.1-beta Released

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, Nov 9, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    Update: 1.13.35.1-beta was released PageSpeed Release Notes

    ngx_pagespeed 1.13.35.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.13+ branch versions so if you need to enable ngx_pagespeed 1.13, 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.13.35.1 listed for Nginx Pagespeed variables with command
    Code (Text):
    grep '1.13.35.1' /usr/local/src/centminmod/centmin.sh
    

    and if it doesn't report 1.13.35.1+ 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.13.6 or higher version 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.13.6 and higher version via centmin.sh menu option 4 (which already has NGINX_PAGESPEED=n set out of box)

    Announcement



    From PageSpeed Release Notess

    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.13.6 or higher via centmin.sh menu option 4

    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.13 branch

    For 123.09beta01
    Code (Text):
    NGXPGSPEED_VER='1.13.35.1-beta'
    NGINX_PAGESPEEDPSOL_VER='1.13.35.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.13.35.1-beta'
    NGINX_PAGESPEEDPSOL_VER='1.13.35.1'
    


    then recompile nginx via centmin.sh menu option 4 with Nginx version 1.13.6 or higher 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
     
    • Informative Informative x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    Looks like changes to /usr/local/nginx/conf/pagespeed.conf are needed due to pagespeed off being deprecated for pagespeed standby outlined at PageSpeed Configuration

    Latest updated 123.09beta01 build as of today will auto update on centmin.sh mneu option 4 nginx update/recompile runs the 2 relevant files for /usr/local/nginx/conf/pagespeed.conf and /usr/local/nginx/conf/pagespeedadmin.conf changing the default off setting for ngx_pagespeed from
    Code (Text):
    pagespeed off;
    

    to
    Code (Text):
    pagespeed unplugged;
    
     
    • Informative Informative x 1
  3. Jimmy

    Jimmy Premium Member Premium Member

    1,147
    253
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +616
    Local Time:
    5:10 PM
    1.13.x
    MariaDB 10.1.x
    Upgrade seems to work fine.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    cheers thanks for the confirmation :)

    working so far here too
     
  5. sfs00784

    sfs00784 New Member

    24
    3
    3
    Nov 8, 2017
    Ratings:
    +11
    Local Time:
    6:10 AM
    installed. perfect
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    glad to hear :)
     
  7. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    5:10 PM
    Is there any real benefit on using nginx pagespeed? I used to have it in the past but after several issues about nginx incompability, I decided to disable it.
    Maybe things have changed for the better now?
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    5:10 PM
    Follow the steps to add pagespeed and recompile but does not seem to work
    Content of /etc/centminmod/custom_config.inc
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    CLANG='y'
    CLANG_FOUR='y'
    NGINX_DEVTOOLSETGCC='y'
    LETSENCRYPT_DETECT='y'
    NGINX_PAGESPEED=y
    NGXDYNAMIC_NGXPAGESPEED='y'
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    full output for
    Code (Text):
    cat /etc/centminmod/custom_config.inc
    

    strange as with ngx_pagespeed enabled with
    Code (Text):
    NGINX_PAGESPEED=y
    NGXDYNAMIC_NGXPAGESPEED='y'
    

    it auto sets CLANG='n' to use GCC compiler for nginx + ngx_pagespeed for best compatibility so you shouldn't be able to compile nginx with CLANG_FOUR='y' and CLANG='y' = clang 4.0.1
    what happens if you just set in persistent config
    Code (Text):
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    NGINX_DEVTOOLSETGCC='y'
    LETSENCRYPT_DETECT='y'
    NGINX_PAGESPEED=y
    NGXDYNAMIC_NGXPAGESPEED='y'
    
     
  11. Andy

    Andy Active Member

    331
    47
    28
    Aug 6, 2014
    Ratings:
    +56
    Local Time:
    5:10 PM
    Yeap. Removing those 2 lines of CLANG and recompile works to get nginx pagespeed enabled.
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,631
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    8:10 AM
    Nginx 1.13.x
    MariaDB 5.5
    k will figure out where the bug is, as when nginx pagespeed is enabled, it should auto fall back to GCC and disable Clang compiler