Want to subscribe to topics you're interested in?
Become a Member

Nginx Nginx 1.11.6 Released

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Nov 16, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    Nginx 1.11.6 has been released. Centmin Mod users can use centmin.sh menu option 4 to update http://nginx.org/en/CHANGES

     
  2. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    seems OpenResty nginx modules might have some issues with 1.11.6 where OpenResty modules are enabled by default in 123.09beta01.
    Code (Text):
    NGINX_OPENRESTY='y'
    

    seems problem with redis2 nginx module GitHub - openresty/redis2-nginx-module: Nginx upstream module for the Redis 2.0 protocol
    Code (Text):
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c: In function ‘ngx_http_redis2_upstream_add’:
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:80:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             if (uscfp[i]->default_port
                         ^
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:82:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
                 && uscfp[i]->default_port != url->default_port)
                            ^
    make[1]: *** [objs/addon/src/ngx_http_redis2_util.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.6'
    make: *** [build] Error 2
    

    bug report at Does not compile with nginx 1.11.6 · Issue #41 · openresty/redis2-nginx-module · GitHub

    FYI, redis2 nginx module is required if you use wordpress redis nginx level caching from centmin.sh menu option 22 auto installed wordpress and select redis caching at nginx level.
     
    Last edited: Nov 16, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    also there's issues with another Openresty memc-nginx-module GitHub - openresty/memc-nginx-module: An extended version of the standard memcached module that supports set, add, delete, and many more memcached commands. which is enabled when persistent config file /etc/centminmod/custom_config.inc is set what centmin mod 123.09beta01 defaults to
    Code (Text):
    NGINX_OPENRESTY='y'
    

    Code (Text):
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c: In function ‘ngx_http_redis2_upstream_add’:
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:80:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             if (uscfp[i]->default_port
                         ^
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:82:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
                 && uscfp[i]->default_port != url->default_port)
                            ^
    make[1]: *** [objs/addon/src/ngx_http_redis2_util.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c: In function ‘ngx_http_memc_upstream_add’:
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c:144:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             if (uscfp[i]->default_port && url->default_port
                         ^
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c:145:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
                 && uscfp[i]->default_port != url->default_port)
                            ^
    make[1]: *** [objs/addon/src/ngx_http_memc_util.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.6'
    make: *** [build] Error 2
    
    

    reported bug at nginx 1.11.6 compile issues · Issue #26 · openresty/memc-nginx-module · GitHub
     
    Last edited: Nov 16, 2016
  4. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    For now probably best to stick with nginx 1.11.5
     
    • Informative Informative x 1
  5. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    3:57 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    Code:
    Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-deprecated-declarations -DNDK_SET_VAR -DNDK_UPSTREAM_LIST  -I src/core -I src/event -I src/event/modules -I src/os/unix -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk -I ../pcre-8.39 -I ../libressl-2.4.4/.openssl/include -I objs -I src/http -I src/http/modules -I src/http/v2 -I ../ngx_devel_kit-0.3.0/src -I ../ngx_devel_kit-0.3.0/src -I ../ngx_devel_kit-0.3.0/objs -I objs/addon/ndk -I src/stream \
            -o objs/addon/src/ngx_http_srcache_filter_module.o \
            ../srcache-nginx-module-0.31/src/ngx_http_srcache_filter_module.c
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c: In function ‘ngx_http_redis2_upstream_add’:
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:80:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             if (uscfp[i]->default_port
                         ^
    ../redis2-nginx-module-0.13/src/ngx_http_redis2_util.c:82:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
                 && uscfp[i]->default_port != url->default_port)
                            ^
    make[1]: *** [objs/addon/src/ngx_http_redis2_util.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c: In function ‘ngx_http_memc_upstream_add’:
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c:144:21: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
             if (uscfp[i]->default_port && url->default_port
                         ^
    ../memc-nginx-module-0.17/src/ngx_http_memc_util.c:145:24: error: ‘ngx_http_upstream_srv_conf_t {aka struct ngx_http_upstream_srv_conf_s}’ has no member named ‘default_port’
                 && uscfp[i]->default_port != url->default_port)
                            ^
    make[1]: *** [objs/addon/src/ngx_http_memc_util.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.11.6'
    make: *** [build] Error 2
    
    real    0m20.726s
    user    0m25.264s
    sys     0m22.284s
    
    strip nginx binary...
    ls: cannot access objs/nginx: No such file or directory
    strip: 'objs/nginx': No such file
    ls: cannot access objs/nginx: No such file or directory
    
    
    Tue Nov 15 17:03:20 CET 2016
    Error: 2, Nginx make failed
    
    Total Nginx Upgrade Time: 123.958473053 seconds
    Yep, tried 2 times and not upgraded.
    P.S. Upgrade time 124 sec

    Code:
    [root@upcloud ~]# nginx -v
    nginx version: nginx/1.11.5
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah stick with 1.11.5 for now :)
     
  7. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    3:57 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    I do not have to recompile again 1.11.5?
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    failed upgrades of nginx should leave previous version intact so no need to recompile unless you have issues
     
    • Like Like x 1
  9. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    9:57 PM
    1.11
    10.2
    I have upgraded fine 7 live servers :)
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    that's because you set in persistent config file
    Code (Text):
    NGINX_OPENRESTY='n'
    

    to disable openresty nginx modules like memc and redis2
     
    • Like Like x 1
  11. RoldanLT

    RoldanLT Well-Known Member

    3,830
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    9:57 PM
    1.11
    10.2
    I have most of 3rd party modules disabled :D.
     
    • Informative Informative x 1
  12. bassie

    bassie Active Member

    495
    104
    43
    Apr 29, 2016
    Ratings:
    +313
    Local Time:
    3:57 PM
    WebP support in the ngx_http_image_filter_module. interesting feature for Nginx 1.10 :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah Module ngx_http_image_filter_module

    Centmin Mod Nginx already enables ngx_http_image_filter_module in 123.09beta01 it's a dynamic nginx module. So once memc and redis2 openresty modules get fixed, 1.11.6 here we come :)

    edit: but
    but looks like centos 7 and probably 6 native GD library isn't compiled with WebP support i believe
    Code (Text):
    /usr/bin/gdlib-config --all
    GD library  2.0.34
    includedir: /usr/include
    cflags:     -I/usr/include
    ldflags:    -L/usr/lib64 -Wl,-z,relro
    libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -lm  
    libdir:     /usr/lib64
    features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON
    
     
    Last edited: Nov 16, 2016
  14. bassie

    bassie Active Member

    495
    104
    43
    Apr 29, 2016
    Ratings:
    +313
    Local Time:
    3:57 PM
    pretty useless then, until you recompile GD library.
     
  15. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    looking at nginx compile logs on CentOS it actually reports GD WebP support = not found
    Code (Text):
    /usr/bin/gdlib-config --all    
    GD library  2.0.34
    includedir: /usr/include
    cflags:     -I/usr/include
    ldflags:    -L/usr/lib64 -Wl,-z,relro
    libs:       -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -lm
    libdir:     /usr/lib64
    features:   GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON
    

    Code (Text):
    checking for zlib library ... found
    checking for GD library ... found
    checking for GD WebP support ... not found
    checking for GeoIP library ... found
    checking for GeoIP IPv6 support ... found
    checking for atomic_ops library ... found
    creating objs/Makefile
    

    Now if you use custom libgd compile with webp support enabled
    Code (Text):
    /usr/local/bin/gdlib-config --all
    gdlib-config: warning: this script is deprecated; please use the pkg-config file instead.
    GD library  2.2.3
    includedir: /usr/local/include
    cflags:     -I/usr/local/include
    ldflags:  
    libs:       -lm   -lz    -lpng15    -lfreetype    -lfontconfig -lfreetype     -ljpeg  -lXpm -lX11    -ltiff     -lwebp
    libdir:     /usr/local/lib
    features:   GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_ZLIB GD_PNG GD_FREETYPE GD_FONTCONFIG GD_JPEG GD_XPM GD_TIFF GD_WEBP
    

    you get :D
    Code (Text):
    checking for zlib library ... found
    checking for GD library ... found
    checking for GeoIP library ... found
    checking for GeoIP IPv6 support ... found
    checking for atomic_ops library ... found
    creating objs/Makefile
    

    Code (Text):
    lsof | grep libgd | grep nginx
    nginx      3639         root  mem       REG              253,1   1145978   55066014 /usr/local/lib/libgd.so.3.0.3
    nginx      3640        nginx  mem       REG              253,1   1145978   55066014 /usr/local/lib/libgd.so.3.0.3
    nginx      3641        nginx  mem       REG              253,1   1145978   55066014 /usr/local/lib/libgd.so.3.0.3
    


    so looks like i'm going to have to add an optional variable to control whether nginx uses system libgd yum provided version or centmin mod own source compiled libgd with webp support enabled :)
     
  16. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    3:57 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    So, is is OK to upgrade after centmin update ru, or we have to wait more?
     
  17. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 2
  18. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
    For Centmin Mod 123.09beta01 users, I'd updated the branch with a workaround patch fix for memc-nginx and redis2-nginx module compatibility with nginx 1.11.6+. This is until OpenResty folks release an official version fix. Update 123.09beta01 code via centmin.sh menu option 23 as outlined below and then try centmin.sh menu option 4 for nginx 1.11.6 upgrade :)

    report findings here :)

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
     
    • Like Like x 1
  19. eva2000

    eva2000 Administrator Staff Member

    29,024
    6,587
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,778
    Local Time:
    11:57 PM
    Nginx 1.13.x
    MariaDB 5.5
  20. Sunka

    Sunka Active Member

    888
    230
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +376
    Local Time:
    3:57 PM
    Nginx 1.13.3
    MariaDB 10.1.24
    So update centmin than update nginx?
    This is official patch or...?