Join the community today
Register Now

Nginx [nginx-announce] nginx-1.7.9

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Dec 24, 2014.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    Changes with nginx 1.7.9 23 Dec 2014

    *) Feature: variables support in the "proxy_cache", "fastcgi_cache",
    "scgi_cache", and "uwsgi_cache" directives.

    *) Feature: variables support in the "expires" directive.

    *) Feature: loading of secret keys from hardware tokens with OpenSSL
    engines.
    Thanks to Dmitrii Pichulin.

    *) Feature: the "autoindex_format" directive.

    *) Bugfix: cache revalidation is now only used for responses with 200
    and 206 status codes.
    Thanks to Piotr Sikora.

    *) Bugfix: the "TE" client request header line was passed to backends
    while proxying.

    *) Bugfix: the "proxy_pass", "fastcgi_pass", "scgi_pass", and
    "uwsgi_pass" directives might not work correctly inside the "if" and
    "limit_except" blocks.

    *) Bugfix: the "proxy_store" directive with the "on" parameter was
    ignored if the "proxy_store" directive with an explicitly specified
    file path was used on a previous level.

    *) Bugfix: nginx could not be built with BoringSSL.
    Thanks to Lukas Tribus.


    --
    Maxim Dounin
    http://nginx.org/en/donation.html

    _______________________________________________
    nginx-announce mailing list
    nginx-announce@nginx.org
    http://mailman.nginx.org/mailman/listinfo/nginx-announce

    Continue reading...
     
  2. Andy

    Andy Active Member

    281
    42
    28
    Aug 6, 2014
    Ratings:
    +49
    Local Time:
    12:30 AM
    Installing nginx 1.7.9 failed on 3 of my servers with same errors (PHP 5.6.4)
    Code:
            ../ngx_cache_purge-2.2/ngx_cache_purge_module.c
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_conf’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:274:30: warning: comparison between pointer and integer [enabled by default]
         if (flcf->upstream.cache != NGX_CONF_UNSET_PTR
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:275:33: warning: comparison between pointer and integer [enabled by default]
             && flcf->upstream.cache != NULL)
                                     ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:291:26: warning: assignment makes integer from pointer without a cast [enabled by default]
         flcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:293:30: warning: comparison between pointer and integer [enabled by default]
         if (flcf->upstream.cache == NULL) {
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_fastcgi_cache_purge_handler’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:324:58: error: invalid type argument of ‘->’ (have ‘int’)
         if (ngx_http_cache_purge_init(r, flcf->upstream.cache->data,
                                                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_conf’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:463:30: warning: comparison between pointer and integer [enabled by default]
         if (plcf->upstream.cache != NGX_CONF_UNSET_PTR
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:464:33: warning: comparison between pointer and integer [enabled by default]
             && plcf->upstream.cache != NULL)
                                     ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:480:26: warning: assignment makes integer from pointer without a cast [enabled by default]
         plcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:482:30: warning: comparison between pointer and integer [enabled by default]
         if (plcf->upstream.cache == NULL) {
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_proxy_cache_purge_handler’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:513:58: error: invalid type argument of ‘->’ (have ‘int’)
         if (ngx_http_cache_purge_init(r, plcf->upstream.cache->data,
                                                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_scgi_cache_purge_conf’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:594:30: warning: comparison between pointer and integer [enabled by default]
         if (slcf->upstream.cache != NGX_CONF_UNSET_PTR
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:595:33: warning: comparison between pointer and integer [enabled by default]
             && slcf->upstream.cache != NULL)
                                     ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:611:26: warning: assignment makes integer from pointer without a cast [enabled by default]
         slcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:613:30: warning: comparison between pointer and integer [enabled by default]
         if (slcf->upstream.cache == NULL) {
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_scgi_cache_purge_handler’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:644:58: error: invalid type argument of ‘->’ (have ‘int’)
         if (ngx_http_cache_purge_init(r, slcf->upstream.cache->data,
                                                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_uwsgi_cache_purge_conf’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:748:30: warning: comparison between pointer and integer [enabled by default]
         if (ulcf->upstream.cache != NGX_CONF_UNSET_PTR
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:749:33: warning: comparison between pointer and integer [enabled by default]
             && ulcf->upstream.cache != NULL)
                                     ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:765:26: warning: assignment makes integer from pointer without a cast [enabled by default]
         ulcf->upstream.cache = ngx_shared_memory_add(cf, &value[1], 0,
                              ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:767:30: warning: comparison between pointer and integer [enabled by default]
         if (ulcf->upstream.cache == NULL) {
                                  ^
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c: In function ‘ngx_http_uwsgi_cache_purge_handler’:
    ../ngx_cache_purge-2.2/ngx_cache_purge_module.c:798:58: error: invalid type argument of ‘->’ (have ‘int’)
         if (ngx_http_cache_purge_init(r, ulcf->upstream.cache->data,
                                                              ^
    make[1]: *** [objs/addon/ngx_cache_purge-2.2/ngx_cache_purge_module.o] Error 1
    make[1]: Leaving directory `/svr-setup/nginx-1.7.9'
    make: *** [build] Error 2
    
    real    2m11.753s
    user    1m36.580s
    sys     0m32.075s
    *************************************************
    
    Tue Dec 23 18:20:20 UTC 2014
    Error: 2, Nginx make failed
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    seems ngx_cache_purge module and Nginx 1.7.9 has conflicts will have to look into that later.

    For now switch back to Nginx 1.7.8
     
  4. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    ngx_cache_pure 2.3 is out might help FRiCKLE Labs / nginx / ngx_cache_purge

    change log http://labs.frickle.com/nginx_ngx_cache_purge/CHANGES

    in centmin.sh edit

    from
    Code:
    NGINX_CACHEPURGEVER='2.2'
    to
    Code:
    NGINX_CACHEPURGEVER='2.3'
    so you end up with the following in centmin.sh

    Code:
    egrep 'NGINX_CACHEPURGEVER|NGINX_VERSION' centmin.sh
    NGINX_CACHEPURGEVER='2.3'
    NGINX_VERSION='1.7.9'        # Use this version of Nginx
    and run centmin.sh menu option 4 to recompile Nginx
     
    Last edited: Dec 25, 2014
    • Like Like x 1
  5. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, quick SSH commands for change variables from 2.2 and 1.7.8 respectively within the same directory that centmin.sh is located i.e. for .08 beta at /usr/local/src/centminmod-123.08centos7beta01 or for .07 stable at /usr/local/src/centmin-v1.2.3mod

    Code:
    egrep 'NGINX_CACHEPURGEVER|NGINX_VERSION' centmin.sh
    sed -i "s/NGINX_CACHEPURGEVER='2.2'/NGINX_CACHEPURGEVER='2.3'/g" centmin.sh
    sed -i "s/NGINX_VERSION='1.7.8'/NGINX_VERSION='1.7.9'/g" centmin.sh
    egrep 'NGINX_CACHEPURGEVER|NGINX_VERSION' centmin.sh
    before
    Code:
    egrep 'NGINX_CACHEPURGEVER|NGINX_VERSION' centmin.sh
    NGINX_CACHEPURGEVER='2.2'
    NGINX_VERSION='1.7.8'        # Use this version of Nginx
    after
    Code:
    egrep 'NGINX_CACHEPURGEVER|NGINX_VERSION' centmin.sh              
    NGINX_CACHEPURGEVER='2.3'
    NGINX_VERSION='1.7.9'        # Use this version of Nginx
     
  6. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    example updated Nginx 1.7.9 via centmin.sh menu option 4 for my wordpress7.centminmod.com test site using CentOS 7.0 + Nginx 1.7.9 + PHP 7.0.0-dev + MariaDB 10.0.15 using Centmin Mod .08 beta01

    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.08 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                 
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 4
    --------------------------------------------------------
    Code:
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    **********************************************************************
    * Nginx Update script - Included in Centmin Extras
    * Version: 1.2.3-eva2000.08 - Date: 31/12/2014 - Copyright 2011-2014 CentminMod.com
    **********************************************************************
    This software comes with no warranty of any kind. You are free to use
    it for both personal and commercial use as licensed under the GPL.
    Nginx Upgrade - Would you like to continue? [y/n] y
    
    Install which version of Nginx? (version i.e. 1.7.9}): 1.7.9
    
    
    backup NGINX CONF...
    
    backup NGINX Install Directory /usr/local/nginx...
    
    ---------------------------------------------------------------------------------
    backup of Nginx Install Directory /usr/local/nginx located at /usr/local/nginxbackup/nginxdirbackup/nginx_241214-141302
    ---------------------------------------------------------------------------------
    backup of Nginx CONF located at /usr/local/nginxbackup/confbackup/conf_241214-141302
    ---------------------------------------------------------------------------------
    
     
  7. Andy

    Andy Active Member

    281
    42
    28
    Aug 6, 2014
    Ratings:
    +49
    Local Time:
    12:30 AM
    Just updated beta 8 centminmod and go to the menu and got this error
    Code:
     ./centmin.sh
    inc/phpsededit.inc: line 5: syntax error in conditional expression
    inc/phpsededit.inc: line 5: syntax error near `;'
    inc/phpsededit.inc: line 5: `    if [[ ! -f "${CUSTOMPHPINIFILE}" ]; then'
    
     
  8. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Dec 25, 2014
    • Like Like x 1
  9. Andy

    Andy Active Member

    281
    42
    28
    Aug 6, 2014
    Ratings:
    +49
    Local Time:
    12:30 AM
    let me know when you update the beta from github
     
  10. eva2000

    eva2000 Administrator Staff Member

    29,037
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:30 PM
    Nginx 1.13.x
    MariaDB 5.5