Learn about Centmin Mod LEMP Stack today
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,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    PHP 7.0.0 GA Stable Support



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to properly support downloading PHP 7.0.0 GA series source tarball files. Prior, when you entered PHP version 7.0.0 on centmin.sh menu option 5 for PHP upgrades, it would download from PHP 7 github based master dev branch. The update now changes that to download the official php.net hosted source tarball files. Example of centmin.sh menu option 5 upgrade to PHP 7.0.0 here.


    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
  2. Jimmy

    Jimmy Well-Known Member

    1,778
    388
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +987
    Local Time:
    5:42 AM
    I just did a clean install. Setup the git environment. Clicked on option 3 to update to the newer branch and I entered: 123.09beta01

    I got this:

    Code:
    Enter the branch name you want to switch to i.e. 123.08beta03 : 123.09beta01
    
    fatal: Unable to read current working directory: No such file or directory
    123.09beta01 branch does not exists
    try again...
    
    I thought I did this before and it worked. Am I doing something wrong?
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    run centmin.sh menu option 23 submenu option 1 first then exit centmin.sh via menu option 24, then reenter /usr/local/src/centminmod and run centmin.sh again for option 23 submenu option 3
     
  4. Jimmy

    Jimmy Well-Known Member

    1,778
    388
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +987
    Local Time:
    5:42 AM
    That did it. I wasn't exiting out. I knew it worked before. Thanks!
     
  5. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    11:42 AM
    1.9.9
    10.1.10
    Testing 123.09le, works great @eva2000!
    One thing that I'd like to see, is an option to provide additional sub-domains (except for www) for LE certs. :)
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah otherwise centmin.sh won't recognise the new updated files
    thanks for confirmation the 123.09beta01le is solely Letsencrypt changes so missing alot of 123.09beta01 subsequent updates to the code - well until i merge 123.09beta01le into 123.09beta01 :)

    additional subdomains usually would be a separate nginx vhost account, so better left that way
     
    Last edited: Dec 6, 2015
  7. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. eva2000

    eva2000 Administrator Staff Member

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

    PHP 7.0 + Zend OpCache & Huge Pages Support



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds for Zend OpCache Transparent Huge Pages support only if Centos 7 detected + kernel supports it (and redis server isn't installed) and specifically disable for Centos 6 due to PHP stalls and bugs when CentOS 6 has kernel level transparent huge pages support and PHP 7.0 is used with Zend Opcache. If you're using PHP 7.0, then update your Centmin Mod code as outlined in below threads and official upgrade page centminmod.com/upgrade.html and then recompile PHP via centmin.sh menu option 5.
    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
  10. eva2000

    eva2000 Administrator Staff Member

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

    ngx_pagespeed 1.9.32.11-beta security update



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to default to ngx_pagespeed 1.9.32.11-beta for security update. You can update Centmin Mod code via centmin.sh menu option 23 submenu option 1 and then 2 and then recompile Nginx via centmin.sh menu option 4 as outlined here.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. Shmee

    Shmee New Member

    15
    2
    3
    Aug 27, 2014
    Space
    Ratings:
    +3
    Local Time:
    7:42 PM
    Loving the letsencrypt beta. Can't wait till it's on stable. Keep up the great work eva2000!
     
  13. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    cheers :D
     
  14. eva2000

    eva2000 Administrator Staff Member

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

    Update CSF Firewall Whitelisted Ports



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to remove at initial first time installation time some of the whitelisted TCP ports in CSF Firewall as they aren't really needed unless you are running remote servers (i.e. for 11211-11214 and 9000/9001 for memcached and php-fpm respectively). Updated Centmin Mod code doesn't automatically remove these for existing installs as some folks may indeed be running remote memcached or php-fpm server nodes. If you are not running such remote nodes, you can manually remove the ports in your existing server configurations by running these 4 commands below:

    Code:
    sed -i 's|2202,11211,11212,11213,11214,||g' /etc/csf/csf.conf
    sed -i 's|9000,9001,||g' /etc/csf/csf.conf
    sed -i 's|10000,10500,10501,||g' /etc/csf/csf.conf
    csf -r
    Nevertheless, memcached and php-fpm both only listen on 127.0.0.1 so are not available to the public anyway.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
    Last edited: Dec 13, 2015
  15. rdan

    rdan Well-Known Member

    5,439
    1,397
    113
    May 25, 2014
    Ratings:
    +2,186
    Local Time:
    5:42 PM
    Mainline
    10.2
    3rd command should be:
    Right? :)
     
  16. eva2000

    eva2000 Administrator Staff Member

    53,142
    12,110
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,645
    Local Time:
    7:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    whoops yup if you made the mistake and ran the incorrect command run this to correct it

    Code:
    sed -i 's|,,6081|,6081|g' /etc/csf/csf.conf
     
  17. eva2000

    eva2000 Administrator Staff Member

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

    Secondary IP Support in Nginx Vhost Generators



    Updated Centmin Mod 123.09beta01 build to support configuration of Nginx vhost generator routines to use a secondary IP address for vhost listen directives from the main server IP address. To enable and test this feature:
    1. You need to already have more than IP address available on your server and have updated to latest 123.09beta01 code base first.
    2. Then you define SECOND_IP variable is centmin mod persistent config file outlined at http://centminmod.com/upgrade.html#persistent - you manually create the file at /etc/centminmod/custom_config.inc and add SECOND_IP=yoursecondary_IPaddress variable to it which will be registered with nginx vhost generator routine so that any new nginx vhosts created via centmin.sh menu option 2 or /usr/bin/nv or centmin.sh menu option 22, will have pre-defined SECOND_IP ip address set in the nginx vhost's listen directive.
    so instead of
    Code:
    listen 80;
    
    with SECOND_IP set in /etc/centminmod/custom_config.inc, it will become
    Code:
    listen ipaddress:80;
    
    Git commit at update nginx vhost generator routines support second IP · centminmod/centminmod@faeb3fd · GitHub

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and below:
     
  18. eva2000

    eva2000 Administrator Staff Member

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

    Updated for CentOS 7.2 Support



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to account for newly released CentOS 7.2 version. This was a legacy message that was added at the time when started Centmin Mod development to ensure I tested new CentOS version releases before folks installed Centmin Mod.
    Code:
    -----------------------------------------------------
    Detected CentOS version greater than > CentOS 7.1
    CentOS 7.1 is the latest tested version for Centmin Mod
    No guarantee 100% working install with your CentOS 7.2
    -----------------------------------------------------
    Do you still want to continue with install ? [y/n]:
    But usually there isn't any problems within CentOS 6.x or 7.x same branch minor versions, so all Centmin Mod functions have accounted for new CentOS 6 and 7 minor versions with exception of this legacy message. So I've updated Centmin Mod branches to only display this message for fresh initial installs and NOT for existing Centmin Mod installations as well as set tested version number to 7.9 for now.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
    Last edited: Dec 16, 2015
  19. eva2000

    eva2000 Administrator Staff Member

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

    Transparent Huge Pages Dynamic Configuration



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to integrated a new tools/hptweaks.sh script into inc/zendopcache_tweaks.inc. So PHP recompile via centmin.sh menu option 5, should trigger the detection and dynamic allocation for vm.nr_hugepages and max locked memory system limits but only for centos 7 with huge pages support for now (not centos 6)

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
  20. eva2000

    eva2000 Administrator Staff Member

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

    PARALLEL_MODE added



    Updated Centmin Mod 123.09beta01 build will PARALLEL_MODE=y in centmin.sh. Experimental test of using subshells to download some tarballs in parallel for faster initial installs. To test this need to do an initial fresh Centmin mod 123.09beta01 install on fresh CentOS 6 or 7 OS and see how fast the install is. PARALLEL_MODE only runs when you have more than 1 cpu thread detected. You can use the curl one line install method to get the install time stats
    Code:
    curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    Commit add PARALLEL_MODE to centmin.sh for 123.09beta01 · centminmod/centminmod@0c6a711 · GitHub

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version thread below:
     
    Last edited: Dec 22, 2015