Get the most out of your Centmin Mod LEMP stack
Become a Member

Upgrade 1.21.6 to 1.23.0 Nginx upgrade Error (Failed)

Discussion in 'Install & Upgrades or Pre-Install Questions' started by cloud9, Jul 4, 2022.

  1. cloud9

    cloud9 Active Member

    437
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +221
    Local Time:
    5:24 PM
    1.25.3
    10.6.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: 7 64 bit
    • Centmin Mod Version Installed: 1.23 09 beta 1
    • Nginx Version Installed: 1.21.6
    • PHP Version Installed: 8.1.7
    • MariaDB MySQL Version Installed: 10.3
    • When was last time updated Centmin Mod code base ? : just now
    • Persistent Config:
      Code:
      #### Installed by Centminmod##############
      MARCH_TARGETNATIVE='n'
      ##########################################
      
      #####################################################
      # CSF FIREWALL
      # PORTFLOOD Configuration
      # https://community.centminmod.com/threads/14708/
      # Setting CSFPORTFLOOD_OVERRIDE='y' allows you to
      # override default CSF Firewall PORTFLOOD values set
      # by Centmin Mod initial install. If end user made
      # custom changes to PORTFLOOD values, the override
      # will not work. Override only works if end user has
      # not made custom changes to PORTFLOOD values to ensure
      # end users customisations do not get overwritten
      CSFPORTFLOOD_OVERRIDE='y'
      # max hit count value allowed is 20
      PORTFLOOD_COUNT=20
      # lowering interval in seconds allows for more
      # port flood hits against default TCP port 21
      PORTFLOOD_INTERVAL=300
      #####################################################
      
      # enable letsencrypt ssl certificate + dual RSA+ECDSA ssl certs https://centminmod.com/acmetool/
      # https://community.centminmod.com/threads/official-acmetool-sh-testing-thread-for-centmin-mod-123-09beta01.8290/
      LETSENCRYPT_DETECT='y'
      DUALCERTS='y'
      
      # Add custom curl to update curl to 8.x latest
      # https://community.centminmod.com/threads/update-addons-customcurl-sh-custom_curlrpm-y-routine-in-123-09beta01.17503/
      CUSTOM_CURLRPM=y
      
      # Force SSL to only using TLSv1.2 or TLSv1.2 + TLSv1.3 (when using OpenSSL 1.1.1 or BoringsSSL)
      #https://community.centminmod.com/threads/add-ssl_protocol_modern-variable-in-123-09beta01.19715/#post-83781
      SSL_PROTOCOL_MODERN='y'
      
      # Enable Rclone and Dropbox to enable sharing Logs
      #https://community.centminmod.com/threads/centmin-mod-nginx-1-21-5-pcre2-beta-testing.22326/#post-91386
      RCLONE_ENABLE='y'
      DROPBOX_SEND='y'
      
      #replace older PCRE2 8.x library with 10.x library
      #https://community.centminmod.com/threads/centmin-mod-nginx-1-21-5-pcre2-beta-testing.22326/#post-91354
      NGINX_PCRE_TWO='y'
      
      # dynamically tune nginx ssl_session_cache in /usr/local/nginx/conf/ssl_include.conf based on system detected memory
      # https://community.centminmod.com/posts/76615/
      NGINX_SSLCACHE_ALLOWOVERRIDE='y'
      
      # override Nginx default OCSP response cache refresh time 1h (3600 seconds) to 24hrs (86400 seconds)
      # https://community.centminmod.com/threads/19515/
      #NGINX_STAPLE_CACHE_OVERRIDE='y'
      #NGINX_STAPLE_CACHE_TTL='86400'
      
      # SET_DEFAULT_MYSQLCHARSET='utf8mb4' to override MariaDB MySQL
      # default characterset and collation from default utf8 to utf8mb4
      # https://community.centminmod.com/threads/17949/
      # SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      
      # enable nginx backlog override https://community.centminmod.com/threads/17620/
      #AUTOHARDTUNE_NGINXBACKLOG='y'
      
      # enable zstd compressed logrotation for nginx & php-fpm https://community.centminmod.com/threads/16374/
      ZSTD_LOGROTATE_NGINX='y'
      ZSTD_LOGROTATE_PHPFPM='y'
      
      # enable ECC 256bit ECDSA self-signed SSL certificate generation https://community.centminmod.com/posts/82177/
      #SELFSIGNEDSSL_ECDSA='y'
      
      # COMMENTED OUT DEFAULT - enable nginx zero downtime on the fly nginx binary upgrades https://community.centminmod.com/threads/8000/
      # NGINX_ZERODT='y'
      
      # COMMENTED OUT - REQUIRES CENTOS KERNEL 5.1 or ABOVE - CHECK VERSION FIRST WITH uname -r
      # CARE WHEN UPGRADING KERNEL - BEST NOT TO DO ON A LIVE SERVER
      # SEE https://community.centminmod.com/threads/add-nginx_iouring_patch-variable-support-in-123-09beta01.18075/#post-76552
      NGINX_IOURING_PATCH='y'
      
      # enable brotli compression https://community.centminmod.com/threads/10688/
      #NGINX_LIBBROTLI='y'
      #NGXDYNAMIC_BROTLI='y'
      
      # boost PHP 7 performance by enabling Profile Guided Optimisation flag
      # https://centminmod.com/perf/
      # will dramatically increase PHP-FPM compile/install times but result in
      # 5-20% faster PHP 7+ performance. PHP_PGO='y' only works with servers with
      # 2+ or more cpu threads. However, you can force PHP PGO optimisations with
      # 1 cpu thread servers via PHP_PGO_ALWAYS='y'
      #PHP_PGO_ALWAYS='y'
      #PHP_PGO='y'
      
      # php compression extensions https://community.centminmod.com/posts/70777/
      #PHP_BROTLI='y'
      #PHP_LZFOUR='y'
      #PHP_LZF='y'
      #PHP_ZSTD='y'
      
      # php file info
      #PHPFINFO='y'
      
      # enable centmin.sh menu option 22 WordPress Cache Enabler Query String inclusions
      # https://community.centminmod.com/posts/85927/
      # WPCLI_CE_QUERYSTRING_INCLUDED='y'
      
      # Set PHP version
      # PHP versions - https://www.php.net/downloads.php
      # https://community.centminmod.com/threads/php-8-0-0-ga-stable-release.20739/#post-87309
      PHP_VERSION='8.1.7'
      
      # PHP version checks
      # https://community.centminmod.com/threads/add-optional-php-version-check-in-123-09beta01.19334/
      DMOTD_PHPCHECK='y'
      
      # Enable VHost Stats
      # see https://community.centminmod.com/threads/add-ngxdynamic_vhoststats-option-support-for-nginx-module-vts-module.12913/#post-54842
      #NGINX_VHOSTSTATS=y
      
      #Enable Max Mind GeoIP
      #see https://community.centminmod.com/threads/how-to-enable-geoip-2-lite-nginx-module-support.17165/
      MM_LICENSE_KEY='xxxxxxxxxxxxx'
      NGINX_GEOIPTWOLITE='y'
      NGXDYNAMIC_GEOIPTWOLITE='y'
      
      #Cloudflare SSL Options
      #https://centminmod.com/letsencrypt-freessl.html#dns
      CF_DNSAPI_GLOBAL='y'
      CF_Token="xxxxxxxxxVExxxxxxxx_Gn"
      CF_Account_ID="xxxxxxxxx2xxxxxx2"
    At the end of upgrading to 1.23 I get this


    Code:
    ../ngx_http_redis-0.3.7/ngx_http_redis_module.c: At top level:
    cc1: note: unrecognized command-line option ‘-Wno-vla-parameter’ may have been intended to silence earlier diagnostics
    make[1]: *** [objs/addon/ngx_http_redis-0.3.7/ngx_http_redis_module.o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/svr-setup/nginx-1.23.0'
    make: *** [build] Error 2 
     
  2. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    6:24 PM

    Nginx 1.23 is not supported yet, as the Redis Nginx modules does not support the latest Nginx.
     
  3. cloud9

    cloud9 Active Member

    437
    118
    43
    Oct 6, 2015
    England
    Ratings:
    +221
    Local Time:
    5:24 PM
    1.25.3
    10.6.x
    Thanks, didnt know that.....

    Just run an upgrade as CMM said 1.23 available

    :shame:
     
  4. buik

    buik “The best traveler is one without a camera.”

    2,044
    527
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,691
    Local Time:
    6:24 PM
  5. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:24 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+