Welcome to Centmin Mod Community
Register Now

Upgrade PHP-FPM Beta Branch Centmin Mod .09 beta branch Testing

Discussion in 'Beta release code' started by eva2000, Aug 12, 2015.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Last edited: Oct 10, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just a heads up for a possibly big change update for 123.09beta01 which involves next nginx upgrades requiring alot of non-nginx service restarts i.e. php-fpm, mariadb mysql, postfix, etc will be auto restarted possibly on next nginx upgrade due to changes in the way Centmin Mod 123.09beta01 installs Nginx's custom zlib or cloudflare's zlib performance fork. I haven't committed the actual change yet in 123.09beta01, but provided it as a early patch if folks want to test it out first at Beta Branch - add optional Cloudflare zlib performance fork support in 123.09beta01
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    If it is not much better it may be better to avoid all that trouble :)

    Do you mean that every time that we need to recompile/update Nginx all of them must restart?

    Hope NO please..... An option to avoid that using custom config ?
     
    Last edited: Dec 16, 2017
  6. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just one time only not everytime to switch services to system zlib because current method may break future systems on next zlib version update causing premature SSH logouts before you can update nginx or php-fpm. That's why the change is needed to prevent this possible future bug.
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Can we get an option for custom config to enable or disable this?
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    not this once off service restart update, because if you do not do this update, you will never be able to properly update nginx anymore when a new zlib version update happens as SSH session will exit half way through your nginx update everytime

    if the concern is service restarts, just pick an offpeak low traffic time to do the nginx update via centmin.sh menu option 4 when i commit the update to 123.09beta01 which will probably be within next 24-48hrs
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    That’s not a problem to do the restarts once ....

    What I am thinking is if that fork one day has issues and not work it will be hard to revert or troubleshoot ...?

    Compared to official release of it..

    If I understand correctly:)
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you mean cloudflare zlib vs custom std zlib ? cloudflare zlib is optional and disabled by default CLOUDFLARE_ZLIB='n' and already controlled via CLOUDFLARE_ZLIB persistent config variable and only enabled with CLOUDFLARE_ZLIB='y'
     
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok then :)

    As the restarts is only once and not every time that we compile/upgrade Nginx then ok all good :)
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  13. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  14. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Just documenting some issues that folks may have it they aren't doing regular Centmin Mod updates. On virtualbox CentOS 6 has some errors with nginx compiles and libressl errors not sure if both are related maybe to my old centos 6 virtualbox install only. Though maybe others might run into this if you haven't updated your centmin mod centos 6/7 boxes in ages.

    libressl part fails so nginx subsequent compile failed
    Code (Text):
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-bsaes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-vpaes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aesni-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aesni-sha1-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-modexp512-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-mont-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-mont5-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-gf2m-elf-x86_64.o'
    clang: error: no such file or directory: 'camellia/.libs/libcrypto_la-cmll-elf-x86_64.o'
    clang: error: no such file or directory: 'md5/.libs/libcrypto_la-md5-elf-x86_64.o'
    clang: error: no such file or directory: 'modes/.libs/libcrypto_la-ghash-elf-x86_64.o'
    clang: error: no such file or directory: 'rc4/.libs/libcrypto_la-rc4-elf-x86_64.o'
    clang: error: no such file or directory: 'rc4/.libs/libcrypto_la-rc4-md5-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha1-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha256-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha512-elf-x86_64.o'
    clang: error: no such file or directory: 'whrlpool/.libs/libcrypto_la-wp-elf-x86_64.o'
    clang: error: no such file or directory: '.libs/libcrypto_la-cpuid-elf-x86_64.o'
    make[2]: *** [libcrypto.la] Error 1
    make[2]: Leaving directory `/svr-setup/libressl-2.6.4/crypto'
    make[1]: *** [all] Error 2
    make[1]: Leaving directory `/svr-setup/libressl-2.6.4/crypto'
    make: *** [all-recursive] Error 1
    Making install in crypto
    make[1]: Entering directory `/svr-setup/libressl-2.6.4/crypto'
    make  install-am
    make[2]: Entering directory `/svr-setup/libressl-2.6.4/crypto'
      CCLD     libcrypto.la
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-bsaes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-vpaes-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aesni-elf-x86_64.o'
    clang: error: no such file or directory: 'aes/.libs/libcrypto_la-aesni-sha1-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-modexp512-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-mont-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-mont5-elf-x86_64.o'
    clang: error: no such file or directory: 'bn/.libs/libcrypto_la-gf2m-elf-x86_64.o'
    clang: error: no such file or directory: 'camellia/.libs/libcrypto_la-cmll-elf-x86_64.o'
    clang: error: no such file or directory: 'md5/.libs/libcrypto_la-md5-elf-x86_64.o'
    clang: error: no such file or directory: 'modes/.libs/libcrypto_la-ghash-elf-x86_64.o'
    clang: error: no such file or directory: 'rc4/.libs/libcrypto_la-rc4-elf-x86_64.o'
    clang: error: no such file or directory: 'rc4/.libs/libcrypto_la-rc4-md5-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha1-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha256-elf-x86_64.o'
    clang: error: no such file or directory: 'sha/.libs/libcrypto_la-sha512-elf-x86_64.o'
    clang: error: no such file or directory: 'whrlpool/.libs/libcrypto_la-wp-elf-x86_64.o'
    clang: error: no such file or directory: '.libs/libcrypto_la-cpuid-elf-x86_64.o'
    make[2]: *** [libcrypto.la] Error 1
    make[2]: Leaving directory `/svr-setup/libressl-2.6.4/crypto'
    make[1]: *** [install] Error 2
    make[1]: Leaving directory `/svr-setup/libressl-2.6.4/crypto'
    make: *** [install-recursive] Error 1
    ln: creating symbolic link `/etc/ssl/openssl.cnf': File exists
    -rw-r--r-- 1 root root 46 Jan 23 09:24 /root/centminlogs/centminmod_libresslinstalltime_230118-091527.log
    

    seems problem is with LibreSSL 2.6.4
    Code (Text):
                  / ___| ___   _ __ ___   _ __  (_)| |(_) _ __    __ _
                 | |    / _ \ | '_ ` _ \ | '_ \ | || || || '_ \  / _` |
                 | |___| (_) || | | | | || |_) || || || || | | || (_| |
                  \____|\___/ |_| |_| |_|| .__/ |_||_||_||_| |_| \__, |
                                         |_|                     |___/
                     _      _  _                 ____  ____   _   
                    | |    (_)| |__   _ __  ___ / ___|/ ___| | | 
                    | |    | || '_ \ | '__|/ _ \\___ \\___ \ | | 
                    | |___ | || |_) || |  |  __/ ___) |___) || |___
                    |_____||_||_.__/ |_|   \___||____/|____/ |_____|
                                                                 
    Compiling LibreSSL...
    make: *** No rule to make target `clean'.  Stop.
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports nested variables... (cached) yes
    checking for gcc... ccache /usr/bin/clang -ferror-limit=0
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... configure: error: in `/svr-setup/libressl-2.6.4':
    configure: error: cannot compute suffix of object files: cannot compile
    See `config.log' for more details
    make: *** No targets specified and no makefile found.  Stop.
    make: *** No rule to make target `install'.  Stop.
    ln: creating symbolic link `/etc/ssl/openssl.cnf': File exists
    -rw-r--r-- 1 root root 44 Jan 23 09:47 /root/centminlogs/centminmod_libresslinstalltime_230118-094653.log
    

    from config.log at /svr-setup/libressl-2.6.4/config.log seems it's the old problem with old zlib work around and needing to recompile ccache as outlined at 123.09beta01 Updated Nginx zlib routine with optional Cloudflare zlib support. This is because my virtualbox centos 6 snapshot hasn't been updated in a while on my local laptop for testing !
    Code (Text):
    cat /svr-setup/libressl-2.6.4/config.log
    
    configure:3731: ccache /usr/bin/clang -ferror-limit=0 -o conftest    conftest.c  >&5
    configure:3735: $? = 0
    configure:3742: ./conftest
    configure:3746: $? = 0
    configure:3761: result: no
    configure:3766: checking for suffix of object files
    configure:3788: ccache /usr/bin/clang -ferror-limit=0 -c   conftest.c >&5
    ./configure: line 3790: 18586 Segmentation fault      $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5
    configure:3792: $? = 139
    

    so with ccache recompiled, nginx compile should work with clang on centos 6

    Just thought I'd note this here for anyone who hasn't addressed the old Dec 2017 zlib workaround issue yet 123.09beta01 Updated Nginx zlib routine with optional Cloudflare zlib support

    edit: see my CentOS 6 virtualbox instance was last updated 16/12/17 so just before zlib workaround issue heh

    upload_2018-1-23_20-13-7.png

    updated it to 23/1/18 version :)
     
    Last edited: Jan 23, 2018
  15. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  17. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    As at February 24, 2018 I have switched Centmin Mod 123.09beta01 to more performant defaults as outlined here. These have been tested for many months so I am confident now in setting them up as Centmin Mod 123.09beta01 and future versions' defaults.
    1. switch from LibreSSL default to OpenSSL for Nginx crypto library by setting LIBRESSL_SWITCH='n' out of the box for better Nginx HTTPS/SSL performance potential
    2. switch from Clang 3.4.2 default compiler for Nginx to GCC 7.2.1+ by setting out of box defaults to CLANG='n', DEVTOOLSETSEVEN='y' and NGINX_DEVTOOLSETGCC='y' for better Nginx performance potential
    3. these may increase initial install times but result in potentially better performance
     
  18. pamamolf

    pamamolf Premium Member Premium Member

    4,068
    427
    83
    May 31, 2014
    Ratings:
    +832
    Local Time:
    7:04 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Will gcc be ok with my custom config?
    Code:
    NSD_INSTALL='n'
    NGINX_SUB='n'
    NGINX_ADDITION='n'
    NGINX_IMAGEFILTER='n'
    NGINX_HTTPCONCAT='n'
    NGINX_PAGESPEED='n'
    CLOUDFLARE_ZLIB='y'
    CLOUDFLARE_ZLIBPHP='y'
    PHP_TUNING='n'
    PHP_OVERWRITECONF='n'
    AUTOTUNE_CLIENTMAXBODY='n'
    DISABLE_IPVSIX='y'
    ENABLEMOTD='n'
    LETSENCRYPT_DETECT='y'
     
  19. eva2000

    eva2000 Administrator Staff Member

    53,251
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    2:04 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup :)
     
  20. GamerJota

    GamerJota Member

    49
    7
    8
    Mar 1, 2016
    Ratings:
    +18
    Local Time:
    1:04 PM
    What about GCC 8 instead of 7?

    Code:
    DEVTOOLSETEIGHT='y'