Welcome to Centmin Mod Community
Register Now

Nginx Enabling openresty - nginx not compiling

Discussion in 'Install & Upgrades or Pre-Install Questions' started by ph3x, Apr 15, 2026.

  1. ph3x

    ph3x New Member

    7
    1
    3
    Aug 29, 2024
    Ratings:
    +3
    Local Time:
    7:32 PM
    1.27.0
    10.6
    Hi George,

    tried to activate openresty module but compile failed - can you please have a look and advise? Thanks.

    Cheers,
    Chris

    • CentOS Version:
      Code (Text):
      AlmaLinux 9.7
    • Centmin Mod Version Installed:
      Code (Text):
      132.00stable
    • Nginx Version Installed:
      Code (Text):
      nginx version: nginx/1.30.0 (140426-203710-almalinux9-kvm-372b787)
      built by gcc 13.3.1 20240611 (Red Hat 13.3.1-2) (GCC)
      built with OpenSSL 3.5.1 1 Jul 2025
      TLS SNI support enabled
      configure arguments: --with-ld-opt='-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/nginx-dep/lib -ljemalloc -Wl,-z,relro,-z,now -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/nginx-dep/lib -pie -fuse-ld=gold' --with-cc-opt='-I/usr/local/zlib-cf/include -I/usr/local/nginx-dep/include -m64 -march=x86-64 -mavx -mavx2 -mpclmul -msse4 -msse4.1 -msse4.2 -fPIC -g -O3 -fstack-protector-strong -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Wno-pointer-sign -Wimplicit-fallthrough=0 -Wno-implicit-function-declaration -Wno-cast-align -Wno-builtin-declaration-mismatch -Wno-deprecated-declarations -Wno-int-conversion -Wno-unused-result -Wno-vla-parameter -Wno-maybe-uninitialized -Wno-return-local-addr -Wno-array-parameter -Wno-alloc-size-larger-than -Wno-address -Wno-array-bounds -Wno-discarded-qualifiers -Wno-stringop-overread -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-unused-variable -Wno-format -Wno-error=unused-result -Wno-missing-profile -Wno-stringop-overflow -Wno-free-nonheap-object -Wno-discarded-qualifiers -Wno-bad-function-cast -Wno-dangling-pointer -Wno-array-parameter -fcode-hoisting -Wno-cast-function-type -Wno-format-extra-args -Wp,-D_FORTIFY_SOURCE=2' --prefix=/usr/local/nginx --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=140426-203710-almalinux9-kvm-372b787 --with-compat --without-pcre2 --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.5.2 --add-module=../ngx_cache_purge-2.5.3 --add-dynamic-module=../ngx_devel_kit-0.3.2 --add-dynamic-module=../set-misc-nginx-module-0.33 --add-dynamic-module=../echo-nginx-module-0.63 --add-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.4.0-cmm --add-module=../memc-nginx-module-0.20 --add-module=../srcache-nginx-module-0.33 --add-dynamic-module=../headers-more-nginx-module-0.37 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.4.0 --with-zlib-opt=-fPIC --with-http_ssl_module --with-http_v2_module
      
    • PHP Version Installed:
      Code (Text):
      PHP 8.3.16 (cli) (built: Jan 15 2025 20:20:02) (NTS)
      Copyright (c) The PHP Group
      Zend Engine v4.3.16, Copyright (c) Zend Technologies
          with Zend OPcache v8.3.16, Copyright (c), by Zend Technologies
      
    • MariaDB MySQL Version Installed:
      Code (Text):
      mysqladmin  Ver 10.0 Distrib 10.6.25-MariaDB, for Linux on x86_64
      Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
      
      Server version          10.6.25-MariaDB
      Protocol version        10
      Connection              Localhost via UNIX socket
      UNIX socket             /var/lib/mysql/mysql.sock
      Uptime:                 1 hour 43 min 45 sec
      
      Threads: 3  Questions: 130281  Slow queries: 1  Opens: 245  Open tables: 189  Queries per second avg: 20.928
      
    • When was last time updated Centmin Mod code base ? :
      Code (Text):
      No local changes to save
      Already up to date.
      No local changes to save
      Already up to date.
      
    • Persistent Config:
      Code (Text):
      SET_DEFAULT_MYSQLCHARSET='utf8mb4'
      SELFSIGNEDSSL_ECDSA='y'
      PHPFINFO='y'
      PHP_OVERWRITECONF='n'
      PYTHON_INSTALL_ALTERNATIVES='y'
      NGINX_UPDATEMAINTENANCE='y'
      
      MARCH_TARGETNATIVE='n'
      LETSENCRYPT_DETECT='y'
      CF_DNSAPI_GLOBAL='y'
      CF_Token=REDACTED
      CF_Account_ID=REDACTED
      
      ORESTY_LUANGINX='y'
      NGINX_OPENRESTY='y'
      NGXDYNAMIC_STREAM='n'
      
    • nginx -t
      Code (Text):
      nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
      nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

    Nginx Upgrade Log

     
  2. eva2000

    eva2000 Administrator Staff Member

    59,280
    12,508
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,140
    Local Time:
    3:32 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Thanks for the bug report. You just ran into an issue because Nginx 1.30.0 was just released. It's the latest version of the Nginx stable branch, moving from Nginx 1.28 to 1.30 and Centmin Mod didn't detect Nginx 1.30 stable properly. I've updated engine Centmin Mod 132.00stable, 140.00beta01 and 141.00beta01 branches to detect both Nginx 1.30 stable and upcoming Nginx 1.31 mainline.

    FYI Nginx 1.30.0 stable is based off of Nginx 1.29.8 mainline code and Centmin Mod defaults to latest mainline versions. So right this moment Nginx 1.30.0 stable codebase is exactly same as Nginx 1.29.8 mainline. They will start diverging when Nginx 1.31.x development starts

    So run cmupdate, and then rerun centmin.sh menu option 4 to update Nginx again
     
  3. ph3x

    ph3x New Member

    7
    1
    3
    Aug 29, 2024
    Ratings:
    +3
    Local Time:
    7:32 PM
    1.27.0
    10.6
    Thanks, working now :)