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

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,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you need to keep the first 2 lines otherwise centmin automatically re-adds them so should be
    Code (Text):
    more_set_headers "Server: nginx centminmod";
    more_set_headers "X-Powered-By: centminmod";
    more_set_headers "Server: nginx";
    more_clear_headers "X-Powered-By";
    

    just change 3rd line to desired server header

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. Mask

    Mask Active Member

    108
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    12:45 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    Hi guys,

    So what's the new here? Are we ever going to see stable 123.09 branch?? I am sure lots of people are using it already and George keeps adding new improvements in there.

    But when its going stable ?? Any timeline on that?

    IMO, its getting difficult/complex to keep track of all the changes as well as keeping up with new additions to new version. (Don't get me wrong, I really appreciate all the you work George has done and keep doing). But I would rather see a module/plugin system where new additions are added/enabled if one wants to use them. Keep the core version simple.

    I will really like to see a stable version of it. All the new additions/changes can keep happening and can be added in it later on. Its been almost 3 years not and this needs to get stable.

    @eva2000 What do you need from us users ?? (In order to get this stable) ?
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Alot of new experimental features in 123.09beta01 are just optional and not enabled by default. Also How To Keep Informed Of Centmin Mod Related Updates :)

    Right now it really comes down to ALOT of documentation writing and updating for stable to be released to occur particularly for centminmod.com official site info etc. As any developer knows, writing continuously evolving code seems relatively easier compared to writing up the documentation for continuously evolving code :LOL:. An example the current letsencrypt integration code is a total version 2 rewrite from the first version code. In progress column centminmod/centminmod marked for Update site, faq, guides for Centmin Mod 123.09beta01/stable documentation · Issue #92 · centminmod/centminmod.

    Yeah it's been ages a big part of it is documentation writing and the 123.09beta01 testing stage has uncovered alot of bugs/fixes that wouldn't be acceptable as part of a stable release status but is at beta testing stage. And feedback by end users hasn't been as frequent for some features - maybe because end users don't use those features as much? So it's on me to bug test those features myself and I only have so much free time to do so. It's reason why letsencrypt integration is still disabled by default and only enabled if you use LETSENCRYPT_DETECT variable as there's not enough feedback up/bug reporting testing to cover all unforseen issues.

    Then there's the perfectionist in me that says there are certain level of bug free-ness and stability/maturity that needs to be in a 123.09stable release :)

    Now that Centmin Mod Nginx has the big ticket items sort of nailed down for HTTP/2 HTTPS, TLS 1.3 supported OpenSSL/BoringSSL - it's closer to where I want a 123.09stable release to be feature support wise. Might also need to polish up centmin.sh menu option 22 wordpress installer routines/feature offering some more to get it to a 'stable' release quality. With that said, we are closer to 123.09stable than ever before :)
     
  8. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated Centmin Mod 123.09beta01 today with a few new commits Centmin Mod Github Commits

    Most substantial is for Nginx + Cloudflare zlib routine bug fix Beta Branch - update inc/nginx_configure.inc fix cloudflare zlib usage

    I believe @Matt and @rdan have experienced this during Nginx recompile/upgrades via centmin.sh menu option 4.

    Upgrading Centmin Mod Code to Latest Version



    Getting Started Guide step 19 outlines also how to keep Centmin Mod code updated or how to switch version branches or you can run cmupdate command that was recently added.

    Centmin Mod LEMP stack's script code is constantly updated for improvements, bug fixes and security fixes so keeping the Centmin Mod code up to date is important.

    For 123.09beta01 and higher that means running SSH command = cmupdate and then re-enter /usr/local/src/centminmod and re-run centmin.sh menu.

    example SSH command = cmupdate run

    Code (Text):
    cmupdate
    Saved working directory and index state WIP on 123.09beta01: 85fae5e update nginx.conf in 123.09beta01
    HEAD is now at 85fae5e update nginx.conf in 123.09beta01
    Updating 85fae5e..4d3149e
    Fast-forward
     addons/ffmpeg.sh        |  2 +-
     centmin.sh              |  2 +-
     config/nginx/nginx.conf |  1 +
     inc/downloads.inc       |  2 +-
     inc/nginx_configure.inc |  2 +-
     inc/nginx_patch.inc     |  2 +-
     inc/openssl_install.inc | 20 +++++++++++---------
     7 files changed, 17 insertions(+), 14 deletions(-)
    


    For full details read the following links:
    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod. This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to. You can easily update within a Centmin Mod version branch or switch version branches via centmin.sh menu option 23 outlined here.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at How to upgrade Centmin Mod software installed on your server.
     
    Last edited: Oct 25, 2018
  9. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    3:45 PM
    Mainline
    10.2
    What is this?
     
  10. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @rdan what output do you get for these 2 commands
    Code (Text):
    grep -w 'keepalive_timeout' /usr/local/nginx/conf/nginx.conf | column -t| tr -s " " | sed -e 's|;||g' | awk '{print $2}'| grep -v keep
    

    Code (Text):
    grep -w 'keepalive_timeout' /usr/local/nginx/conf/nginx.conf | column -t| tr -s " " | sed -e 's|;||g'
    
     
  11. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    3:45 PM
    Mainline
    10.2
    Code:
    # grep -w 'keepalive_timeout' /usr/local/nginx/conf/nginx.conf | column -t| tr -s " " | sed -e 's|;||g' | awk '{print $2}'| grep -v keep
    15s
    # grep -w 'keepalive_timeout' /usr/local/nginx/conf/nginx.conf | column -t| tr -s " " | sed -e 's|;||g'
    keepalive_timeout 15s
    
     
  12. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    3:45 PM
    Mainline
    10.2
    I have some server manually set to 10s and 15s :D.

    What is the default value for CMM now and why?
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fixed in Beta Branch - fix inc/cpcheck.inc keepalive_timeout value check that check is for value of keepalive_timeout check just didn't account for 's' in it

    default for new 123.09beta01 for keepalive_timeout is 8s - you can alter to whatever you want, i just choose it based on best optimal value for balancing high concurrency user loads and latency.
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated 123.09beta01's centmin.sh menu option 17 with bug fixes thanks to @Jimmy bug report

    centmin.sh menu option 17 routine has been improved including adding 2 other compression tools for zstd and lz4 :)

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com  
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 17
    --------------------------------------------------------
    

    Code (Text):
    Multi-thread compression Install
    
    The following compression tools will be installed
    
      1. pigz
      2. pbzip2
      3. lbzip2
      4. plzip
      5. zstd
      6. lz4
    
    pigz already installed
    pbzip2 already installed
    lbzip2 already installed
    lzip already installed
    plzip already installed
    zstd already installed
    lz4 already installed
    
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  17. Mask

    Mask Active Member

    108
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    12:45 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    @eva2000
    Not sure if this is intended behavior with 123.09beta (I checking but could not find anything) but on a new server setup using latest beta release, when I restart Nginx, the stats under vhost_status do not get clear. i.e. the "Servers Zone" section will retain its data.

    Anyway to force it to clear it up ? (When I make config changes and restart Nginx, i prefer to reset stats to see any new error happening.

    Thanks
     
  18. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  19. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated 123.09beta01 to update ccache to 3.5 version and OpenSSL from 1.1.1 to 1.1.1a. 123.09beta01 will now also auto detect older 1.1.0a-j branch versions of OPENSSL_VERSION variable in persistent config file at /etc/centminmod/custom_config.inc and auto override them to OpenSSL 1.1.1a as some folks have hardcoded OPENSSL_VERSION in persistent config file at /etc/centminmod/custom_config.inc but forget to update it in line with centmin.sh updated versions so they end up compiling outdated OpenSSL versions with Nginx despite upgrading 123.09beta01.
     
  20. eva2000

    eva2000 Administrator Staff Member

    53,148
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    5:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+