Join the community today
Become a Member

Nginx IPv6 Install

Discussion in 'Install & Upgrades or Pre-Install Questions' started by WPSparky, Mar 21, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:23 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    hmm 123.09beta01 fixes would of carried into 130.00beta01, so will need to double check

    edit: not seeing anything different for this when comparing 130.00beta01 and 123.09beta01 right now

     
    Last edited: May 14, 2022
  2. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    4:23 PM
    It seems Nginx almost installs correctly (expect PCRE), but PHP does not, no matter which version.

    Code:
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 104.18.10.170: Network is unreachable
    
    retrying local mirror download
    
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (7) Failed to connect to 104.18.11.170: Network is unreachable
    [1;32;40mError: php-8.1.6.tar.xz download failed.
    
    Code:
    [1;32;40m* Installing nginx
    (B[m*************************************************
    [1;32;40mInstalling nginx Modules / Prerequisites...
    (B[m[1;33;40mDownload pcre-8.45.tar.gz ...
    (B[mwget -c4 --progress=bar https://centminmod.com/centminmodparts/pcre/pcre-8.45.tar.gz -O pcre-8.45.tar.gz --tries=3
    --2022-05-22 18:41:20--  https://centminmod.com/centminmodparts/pcre/pcre-8.45.tar.gz
    Resolving centminmod.com... 104.18.11.170, 104.18.10.170
    Connecting to centminmod.com|104.18.11.170|:443... failed: Network is unreachable.
    Connecting to centminmod.com|104.18.10.170|:443... failed: Network is unreachable.
    [1;32;40mError: pcre-8.45.tar.gz download failed.
    
    Full install log:
    installer_220522-182539.log (github.com)

    Code:
    FORCE_IPVFOUR='n'
    NGINX_IPV='y' #probably useless?
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:23 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Strange that install log shows nginx and PHP were installed just timezonedb extension PHP wasn't

    Code (Text):
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck Nginx Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mnginx version: nginx/1.21.6 (220522-184455-centos7-kvm-3fe11b8)
    built by gcc 10.2.1 20210130 (Red Hat 10.2.1-11) (GCC)
    built with OpenSSL 1.1.1o  3 May 2022
    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 -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/nginx-dep/lib -flto=2 -fuse-ld=gold' --with-cc-opt='-I/usr/local/zlib-cf/include -I/usr/local/nginx-dep/include -m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto=2 -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wno-pointer-sign -Wimplicit-fallthrough=0 -Wno-missing-profile -Wno-implicit-function-declaration -Wno-int-conversion -Wno-unused-result -Wno-unused-result -fcode-hoisting -Wno-cast-function-type -Wno-format-extra-args -Wno-vla-parameter -Wp,-D_FORTIFY_SOURCE=2' --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=220522-184455-centos7-kvm-3fe11b8 --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-stream --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.5.1 --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.32 --add-dynamic-module=../echo-nginx-module-0.62 --add-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.19 --add-module=../srcache-nginx-module-0.32 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.1o --with-openssl-opt='enable-ec_nistp_64_gcc_128 enable-tls1_3 -fuse-ld=gold'
    
    [1;33;40m--------------------------------------------------------
    (B[m[1;33;40mCheck PHP-FPM Version:
    (B[m[1;33;40m--------------------------------------------------------
    (B[mPHP Warning:  PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20210902/timezonedb.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20210902/timezonedb.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20210902/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    PHP 8.1.6 (cli) (built: May 22 2022 18:54:13) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.1.6, Copyright (c) Zend Technologies
       with Zend OPcache v8.1.6, Copyright (c), by Zend Technologies
    
     
  4. tininho

    tininho Active Member

    182
    44
    28
    May 22, 2019
    eu
    Ratings:
    +135
    Local Time:
    4:23 PM
    Now it's fixed, and the install seems to go through completely (even with modified custom_config), many thanks! Also Wordpress install through option 22 works (with SSL) and the site accessible from web, after adding this to domain.com.ssl.conf file (From Centminmod FAQ #34):

    Code:
    listen [::]:443 ssl http2;
    On a side note (and not related to Centminmod) install time is really slow (around 3500 secs). This is probably Github's fault as their domain does not have IPV6 compatibility and DNS resolving needs to be done trough DNS64/NAT64 system, such as trex.fi

    I will test your gitlab version and see if cloning/downloading improves. Gitlab is IPV6 compatible without the above mentioned "proxy", unlike Github.
     
    Last edited: May 26, 2022
  5. eva2000

    eva2000 Administrator Staff Member

    54,087
    12,177
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,735
    Local Time:
    12:23 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Gitlab version is just a dumb backup to Github repo so file references in Gitlab will still reference Github. So don't use Gitlab ones for install.

    Glad to hear though Ipv6 only installs are working now after my recent fixes :)