Learn about Centmin Mod LEMP Stack today
Register Now

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

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  2. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:47 PM
    1.11
    10.2
    New install.
    PHP 7.0.7 default on config.
    I got this small issue :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    Need the initial install log :)

    You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.7 or 7.2 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS 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.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:47 PM
    1.11
    10.2
  5. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    looks like php memcache extension broke again for php 7.0.7
    Code (Text):
    compilation terminated.
    In file included from /svr-setup/memcache-3.0.8/php_memcache.h:34:0,
                     from /svr-setup/memcache-3.0.8/memcache.c:30:
    /svr-setup/memcache-3.0.8/memcache_pool.h:45:47: fatal error: ext/standard/php_smart_str_public.h: No such file or directory
    #include "ext/standard/php_smart_str_public.h"
                                                   ^
    compilation terminated.
    /svr-setup/memcache-3.0.8/memcache_pool.c:38:40: fatal error: ext/standard/php_smart_str.h: No such file or directory
    #include "ext/standard/php_smart_str.h"
                                            ^
    compilation terminated.
    make: *** [memcache_consistent_hash.lo] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [memcache_ascii_protocol.lo] Error 1
    make: *** [memcache_session.lo] Error 1
    make: *** [memcache_binary_protocol.lo] Error 1
    make: *** [memcache_standard_hash.lo] Error 1
    make: *** [memcache.lo] Error 1
    make: *** [memcache_pool.lo] Error 1
    Gracefully shutting down php-fpm  done
    Starting php-fpm [03-Jun-2016 03:28:35] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or direct
     
    • Like Like x 1
  6. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:47 PM
    1.11
    10.2
    But I have it disabled on my custom config.
    I only enable memcached.
     
  7. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    Actually might be a bug noticed further up it says
    Code (Text):
    1;32;40mCompiling PHP memcache extension...
    

    that is for php 5 not php 7

    if it's php 7 it should say
    Code (Text):
    Compiling memcache PHP extension for PHP 7.x ...
    

    inc/memcached_install.inc lines 235 to 283 are for that memcache php extension install routine

    lines 280-282 would remove memcache.ini if PHP_MEMCACHE='n' is detected
    could be related then

    make sure /etc/centminmod/custom_config.inc are set before you launch centmin.sh

    what does your persistent config at /etc/centminmod/custom_config.inc contain ?
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    doing latest 123.09beta01 install time benchmark test to see how fast it can install on a 4 cpu KVM in Las Vegas running on an Intel Xeon E3-1270v3 clocked at 3.6Ghz :)
    Code (Text):
    curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    

    very fast indeed
    Code (Text):
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 115.1421 seconds
    Total YUM Time: 105.611106156 seconds
    Total YUM + Source Download Time: 128.8497
    Total Nginx First Time Install Time: 69.8035
    Total PHP First Time Install Time: 181.6490
    Download Zip From Github Time: 4.4353
    Total Time Other eg. source compiles: 186.4686
    Total Centmin Mod Install Time: 566.7708
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 686.3482 seconds
    ---------------------------------------------------------------------------
     
    Last edited: Jun 5, 2016
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  10. tjk

    tjk Member

    74
    16
    8
    Jun 27, 2015
    Ratings:
    +25
    Local Time:
    5:47 AM
    Hey @eva2000, finally getting around to testing/using CentminMod, tired of doing it all by hand! Thank you for your efforts on the project, I appreciate it!

    Moving from Ubuntu LTS to CentOS 7.x at the same time, fun stuff.

    Been testing latest beta most of the day on a few vm's and bare metal nodes, and I saw/read about your new features to update curl to the latest, however with the base install, curl wasn't updated, I had to run the addons/customcurl.sh to get it updated.

    Maybe I was wrong, but I thought the recent beta had it built it during the install

    Thanks again for all the hard work, looking forward to using CentminMod, and I will have a bunch of stupid questions I'm sure in the coming days!

    Tomk
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    indeed it's partially why i developed Centmin Mod - there's only so many hours in a day, so automation is key :D
    Fun indeed.. CentOS 7 is definitely the way forward these days for CentOS side
    none of the betas have curl 7.49+ by default as i left it to end user to run addons/customcurl.sh :)

    much appreciated - plenty of info on the forums to search for to - accumulated quite a bit of info over the past 2yrs here :D
     
  12. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
  13. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    11:47 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    just tried and reinstall makes dowgrade to 2.2.7 version from mine 2.2.8
     
  14. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
  15. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    11:47 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    Strange, phpinfo shows that upgrade was to 3.0.0 RC1, and shell during install shows 2.2.7
    I am using newest php 7

    Also, when need to upgrade redis php extension we need t choose reinstall option?
    Another also, :), is there some check to see is there newer version?


    Code:
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20151012/
    Installing header files:           /usr/local/include/php/
    service php-fpm reload
    Reload service php-fpm  done
    Check if phpredis-2.2.7.tgz exists
    Downloading redis PHP extension..
    Download phpredis-2.2.7.tgz ...
    Error: phpredis-2.2.7.tgz not found !!! Downloading now......
    2016-06-07 19:13:01 URL:https://codeload.github.com/phpredis/phpredis/tar.gz/2.2.7 [137790/137790] -> "phpredis-2.2.7.tgz" [1]
    Download done.
    phpredis-2.2.7.tgz valid file.
    
    Compiling PHP redis-2.2.7 extension for PHP 7.x ...
    /svr-setup
    cd /svr-setup
    Cloning into 'redis-php7'...
    make: *** No rule to make target `clean

    a - 19-22-53.png
     
  16. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    there's no check for newer versions just check on those 2 official sites i listed and when needed run centmin.sh menu option 13 submenu option 2 to reinstall

    restart php-fpm and see ssh command line shows correct version (i updated the menu again to restart php-fpm after update heh)
     
    • Like Like x 1
  17. Sunka

    Sunka Active Member

    910
    238
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +385
    Local Time:
    11:47 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    I think that all is OK?
    I did php-fpm restart after. Is it necessary to do that or not?

    Code:
    [root@tvor-ocean ~]# php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 3.0.0-rc1
     
    • Like Like x 1
  18. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    yup that's it - you shouldn't need to restart if you update 123.09beta01 to latest code again :)
     
    • Like Like x 1
  19. eva2000

    eva2000 Administrator Staff Member

    29,720
    6,711
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,015
    Local Time:
    7:47 PM
    Nginx 1.13.x
    MariaDB 5.5

    Add Cloudflare Nginx Dynamic TLS Patch Support



    Updated 123.09beta01. Add NGINX_DYNAMICTLS='n' option to centmin.sh. When set in persistent config at /etc/centminmod/custom_config.inc to NGINX_DYNAMICTLS='y' + NGINXPATCH='y' and centmin.sh menu option 4 is used to recompile Nginx, then you enable the Cloudflare Nginx Dynamic TLS patch as discussed at Nginx - Optimizing TLS over TCP to reduce latency: TLS dynamic record sizing | Centmin Mod Community Untested on Centmin Mod Nginx 1.11 branch, so mileage will vary. To disable, do the reverse set NGINX_DYNMAICTLS='n' and recompile nginx again.

    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.

    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. With Centmin Mod 1.2.3-eva2000.08) (123.08stable) and higher releases, a newly added centmin.sh menu option 23 allows much easier code updates and version branch swicthing via Git backed environment you can setup. For full details read the following links:
     
  20. RoldanLT

    RoldanLT Well-Known Member

    3,875
    946
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,290
    Local Time:
    5:47 PM
    1.11
    10.2
    Don't know how to verify I have this working correctly ? :D