Welcome to Centmin Mod Community
Become a Member

Beta Branch update installer-latest.sh with most nginx modules dynamically compiled

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 23, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    10:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update installer-latest.sh with most nginx modules dynamically compiled

    for 123.09beta01 if using installer-latest.sh instead of installer.sh for curl one liner install, most nginx modules which support nginx dynamic module configuration will be enabled out of the box and ngx_brotli and xslt nginx modules will also be enabled by default via NGINX_LIBBROTLI='y' and NGINX_XSLT='y' options. This is configured by installer-latest.sh by populating and creating /etc/centminmod/custom_config.inc persistent config file before running the actual centmin mod initial install

    Continue reading...

    123.09beta01 branch


     
  2. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    10:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    install-latest.sh is downloaed on centminmod.com as betainstaller-latest.sh and includes most nginx modules like ngx_pagespeed and brotli enabled by default

    Code (Text):
    curl -O https://centminmod.com/betainstaller-latest.sh && chmod 0700 betainstaller-latest.sh && bash betainstaller-latest.sh
    
     
    Last edited: May 23, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    54,868
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    10:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like bug for xslt nginx module compile
    Code (Text):
    configuring additional modules
    adding module in ../nginx-module-vts
    + ngx_http_vhost_traffic_status_module was configured
    adding module in ../ngx-fancyindex-0.3.6
    + ngx_http_fancyindex_module was configured
    adding module in ../ngx_cache_purge-2.3
    + ngx_http_cache_purge_module was configured
    adding module in ../ngx_devel_kit-0.3.0
    + ngx_devel_kit was configured
    adding module in ../ngx_http_redis-0.3.7
    + ngx_http_redis_module was configured
    adding module in ../lua-nginx-module-0.10.4
    checking for LuaJIT library in /usr/local/lib and /usr/local/include/luajit-2.1 (specified by the LUAJIT_LIB and LUAJIT_INC env, with -ldl) ... found
    checking for export symbols by default (-E) ... found
    checking for export symbols by default (--export-all-symbols) ... not found
    checking for SO_PASSCRED ... found
    checking for mmap(sbrk(0)) ... found
    checking for __attribute__(constructor) ... found
    + ngx_http_lua_module was configured
    adding module in ../nginx_upstream_check_module-0.3.0
    checking for ngx_http_upstream_check_module ... found
    + ngx_http_upstream_check_module was configured
    configuring additional dynamic modules
    adding module in ../ngx_brotli
    checking for Brotli library ... found
    + ngx_brotli was configured
    adding module in ../ngx_pagespeed-release-1.11.33.2-beta
    mod_pagespeed_dir=../ngx_pagespeed-release-1.11.33.2-beta/psol/include
    build_from_source=false
    checking for psol ... found
    List of modules (in reverse order of applicability):  ngx_http_write_filter_module ngx_http_header_filter_module ngx_http_chunked_filter_module ngx_http_v2_filter_module ngx_http_range_header_filter_module ngx_http_gzip_filter_module ngx_http_postpone_filter_module ngx_http_ssi_filter_module ngx_http_charset_filter_module ngx_http_sub_filter_module ngx_http_addition_filter_module ngx_http_userid_filter_module ngx_http_headers_filter_module
    checking for psol-compiler-compat ... found
    + ngx_pagespeed was configured
    adding module in ../set-misc-nginx-module-0.30
    found ngx_devel_kit for ngx_set_misc; looks good.
    + ngx_http_set_misc_module was configured
    adding module in ../echo-nginx-module-0.59
    + ngx_http_echo_module was configured
    adding module in ../redis2-nginx-module-0.13
    + ngx_http_redis2_module was configured
    adding module in ../memc-nginx-module-0.17
    + ngx_http_memc_module was configured
    adding module in ../srcache-nginx-module-0.31
    + ngx_http_srcache_filter_module was configured
    adding module in ../headers-more-nginx-module-0.30
    + ngx_http_headers_more_filter_module was configured
    checking for zlib library ... found
    checking for libxslt ... not found
    checking for libxslt in /usr/local/ ... not found
    checking for libxslt in /usr/pkg/ ... not found
    checking for libxslt in /opt/local/ ... not found
    
    ./configure: error: the HTTP XSLT module requires the libxml2/libxslt
    libraries. You can either do not enable the module or install the libraries.


    Code (Text):
    checking for libxslt ... not found
    checking for libxslt in /usr/local/ ... not found
    checking for libxslt in /usr/pkg/ ... not found
    checking for libxslt in /opt/local/ ... not found
    
    ./configure: error: the HTTP XSLT module requires the libxml2/libxslt
    libraries. You can either do not enable the module or install the libraries.
    

    but it is installed
    Code (Text):
    yum list *libxslt* *libxml2* -q
    Installed Packages
    libxml2.x86_64                                                                                                              2.7.6-20.el6_7.1                                                                                                      @updates
    libxml2-devel.x86_64                                                                                                        2.7.6-20.el6_7.1                                                                                                      @updates
    libxslt.x86_64                                                                                                              1.1.26-2.el6_3.1                                                                                                      @base
    libxslt-devel.x86_64                                                                                                        1.1.26-2.el6_3.1                                                                                                      @base
    Available Packages
    libxml2-python.x86_64                                                                                                       2.7.6-20.el6_7.1                                                                                                      updates
    libxml2-static.x86_64                                                                                                       2.7.6-20.el6_7.1                                                                                                      updates
    libxslt-python.x86_64                                                                                                       1.1.26-2.el6_3.1                                                                                                      base  
    perl-XML-LibXSLT.x86_64                                                                                                     1.70-1.1.el6                                                                                                          base  
    

    Code (Text):
    rpm -ql libxslt-devel | egrep '\.h$|\.so'
    /usr/include/libexslt/exslt.h
    /usr/include/libexslt/exsltconfig.h
    /usr/include/libexslt/exsltexports.h
    /usr/include/libxslt/attributes.h
    /usr/include/libxslt/documents.h
    /usr/include/libxslt/extensions.h
    /usr/include/libxslt/extra.h
    /usr/include/libxslt/functions.h
    /usr/include/libxslt/imports.h
    /usr/include/libxslt/keys.h
    /usr/include/libxslt/namespaces.h
    /usr/include/libxslt/numbersInternals.h
    /usr/include/libxslt/pattern.h
    /usr/include/libxslt/preproc.h
    /usr/include/libxslt/security.h
    /usr/include/libxslt/templates.h
    /usr/include/libxslt/transform.h
    /usr/include/libxslt/variables.h
    /usr/include/libxslt/xslt.h
    /usr/include/libxslt/xsltInternals.h
    /usr/include/libxslt/xsltconfig.h
    /usr/include/libxslt/xsltexports.h
    /usr/include/libxslt/xsltlocale.h
    /usr/include/libxslt/xsltutils.h
    /usr/lib64/libexslt.so
    /usr/lib64/libxslt.so
    


    problem is with xslt nginx module enabled as dynamic module, if xslt compiled as non-dynamic then compiles okay
    Code (Text):
    dynamic module directory at /usr/local/nginx/modules
    total 20M
    drwxr-xr-x  2 root root 4.0K May 23 13:13 .
    drwxr-xr-x 10 root root 4.0K May 23 13:13 ..
    -rwxr-xr-x  1 root root 207K May 23 13:13 ngx_http_brotli_filter_module.so
    -rwxr-xr-x  1 root root 106K May 23 13:13 ngx_http_brotli_static_module.so
    -rwxr-xr-x  1 root root 662K May 23 13:13 ngx_http_echo_module.so
    -rwxr-xr-x  1 root root 123K May 23 13:13 ngx_http_geoip_module.so
    -rwxr-xr-x  1 root root 279K May 23 13:13 ngx_http_headers_more_filter_module.so
    -rwxr-xr-x  1 root root 134K May 23 13:13 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root 344K May 23 13:13 ngx_http_memc_module.so
    -rwxr-xr-x  1 root root 283K May 23 13:13 ngx_http_redis2_module.so
    -rwxr-xr-x  1 root root 751K May 23 13:13 ngx_http_set_misc_module.so
    -rwxr-xr-x  1 root root 395K May 23 13:13 ngx_http_srcache_filter_module.so
    -rwxr-xr-x  1 root root  17M May 23 13:13 ngx_pagespeed.so
    -rwxr-xr-x  1 root root 546K May 23 13:13 ngx_stream_module.so


    updated 123.09beta01's installer-latest.sh to disable xslt module for now
     
    Last edited: May 23, 2016