Join the community 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,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    1GB OpenVZ CentOS 6.7 test for 123.09beta01 and php 5.6 default installer
    Code:
    curl -O https://centminmod.com/betainstaller56.sh && chmod 0700 betainstaller56.sh && bash betainstaller56.sh
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 110.3202 seconds
    Total YUM Time: 72.582726745 seconds
    Total YUM + Source Download Time: 112.9035
    Total Nginx First Time Install Time: 130.8193
    Total PHP First Time Install Time: 201.4023
    Download Zip From Github Time: 2.3570
    Total Time Other eg. source compiles: 225.1992
    Total Centmin Mod Install Time: 670.3243
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 783.0015 seconds
    ---------------------------------------------------------------------------
    Code:
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    PHP 5.6.17 (cli) (built: Jan 16 2016 13:11:53)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies

     
  2. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    1GB OpenVZ VPS CentOS 6.7 for 123.09beta01 with new php 7.0.2 default installer :D
    Code:
    curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh
    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 113.4681 seconds
    Total YUM Time: 64.718317170 seconds
    Total YUM + Source Download Time: 85.1154
    Total Nginx First Time Install Time: 129.8166
    Total PHP First Time Install Time: 217.9021
    Download Zip From Github Time: 2.2473
    Total Time Other eg. source compiles: 230.8312
    Total Centmin Mod Install Time: 663.6653
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 779.3807 seconds
    ---------------------------------------------------------------------------
    Code:
    --------------------------------------------------------
    Check PHP-FPM Version:
    --------------------------------------------------------
    PHP 7.0.2 (cli) (built: Jan 16 2016 13:36:36) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5

    Modsecurity Nginx Detection & Configuration Support



    Something that developed from thread at https://community.centminmod.com/posts/24343/. I added nginx modsecurity detection and configuration support into Centmin Mod 123.09beta01 only Beta Branch - update inc/nginx_configure.inc and centmin.sh modsecurity detection | Centmin Mod Community Not install but detection and configurtaion. Which means if Modsecurity is properly installed in the right default directories and Centmin Mod centmin.sh menu option 4 for nginx recompiles can detect modsecurity, then nginx will be configured with the right modsecurity add-module flags to add modsecurity nginx module to nginx.

    This means I can probably later on add a standalone Centmin Mod Addon i.e. addons/modsecurity.sh to do the modsecurity installation which Centmin Mod 123.09beta01 will be able to auto detect and pick on and configure on when you run centmin.sh menu option 4 :)

    default centmin mod 123.09beta01 nginx install has NGINX_MODSECURITY=n disabled in centmin.sh
    to enable modsecurity nginx module detection, create or append into your persistent config file at /etc/centminmod/custom_config.inc the following:
    Code:
    NGINX_MODSECURITY=y
    then run centmin.sh menu option 4 to recompile Nginx. If modsecurity is installed at know paths, then nginx will be configured with modsecurity nginx module. If modsecurity is not installed, nginx will auto configure without modsecurity nginx module
    Code:
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu                  
    --------------------------------------------------------
    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 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    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 Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 4
    --------------------------------------------------------
    
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    **********************************************************************
    * Nginx Update script - Included in Centmin Extras
    * Version: 1.2.3-eva2000.09 - Date: 31/09/2015 - Copyright 2011-2015 CentminMod.com
    **********************************************************************
    
    This software comes with no warranty of any kind. You are free to use
    it for both personal and commercial use as licensed under the GPL.
    
    Nginx Upgrade - Would you like to continue? [y/n] y
    
    Install which version of Nginx? (version i.e. 1.9.9}): 1.9.9
     
    Last edited: Jan 18, 2016
    • Like Like x 3
  4. RoldanLT

    RoldanLT Well-Known Member

    3,882
    947
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,291
    Local Time:
    3:37 PM
    1.11
    10.2
    How to disable on persistent config? :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    it's not enabled by default, centmin.sh sets NGINX_MODSECURITY=n by default - the commit comments might make more sense if you read at update inc/nginx_configure.inc and centmin.sh modsecurity detection · centminmod/centminmod@5de6181 · GitHub :)

    Code:
        # if centmin.sh variable NGINX_MODSECURITY=y is enabled or
        # persistent config setup http://centminmod.com/upgrade.html#persistent
        # with variable NGINX_MODSECURITY=y, then Nginx Modsecurity module
        # is installed at Nginx configure time but only if added modsecurity
        # standalone install related files are detect
        #
        # if modsecurity has been installed in default location the path
        # to standalone.so and mod_security2.so files will exist
        # if they exist centmin mod will determine that modsecurity is
        # installed so it can compile Nginx with modsecurity module support
        # using string command to check modsecurity version installed so that
        # can make modsecurity installation a standalone centmin mod addon script
        # on its own
     
    • Like Like x 1
  6. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5

    New Addons for node.js and modsecurity installers



    Updated Centmin Mod 123.09beta01 build to add 2 new addons.
    • addons/nodejs.sh - this is a standalone installer for latest node.js 4.2.4 LTS release via nodesource.com YUM repository which includes updating npm to latest version as well. The addons/passenger.sh has also been updated for it's node.js install routine to use nodesource.com YUM repository as well. So you can easily update node.js via normal yum update commands but you need to disable the priorities plugin too so YUM picks node.js package from nodesource repo instead of EPEL repo.
      Code:
      yum update nodejs --disableplugin=priorities
    • addons/modsecurity.sh - this is the standalone modsecurity installer which installs modsecurity itself + setups up OWASP Core Rule set as well. This is needed to be installed before recompiling nginx via centmin.sh menu option 4 outlined here.
    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and version thread below:
    Versions installed for node.js and npm
    Code:
    node --version
    v4.2.4
    Code:
    npm --version       
    3.5.3
    Code:
    yum -q list nodejs --disableplugin=priorities
    Installed Packages
    nodejs.x86_64      4.2.4-1nodesource.el7.centos      @nodesource
    Note: seems only CentOS 7 is supported. CentOS 6 is not :( Node.js 4.0.0 on el6? · Issue #128 · nodesource/distributions · GitHub. So workaround by source compiling node.js 4.x on CentOS 6 systems.
    Code:
    ## Your distribution, identified as "centos-release-6-7.el6.centos.12.3.x86_64", is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support
     
    Last edited: Jan 23, 2016
  7. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5

    Vhost Flat File Mapping Discussions



    Anyone would like to see some form of flat file mapping of created nginx vhosts with settings and paths and mapping to mysql databases for specific nginx vhosts ? This would allow any future backup/site transfer features to know which mysql databases are mapped to which nginx vhosts ?

    Would like to reuse an existing directory as base at /etc/centminmod/. So something like below

    flat file for nginx vhost settings and link to mysql database flat file /etc/centminmod/vhosts/domain.com.ini
    Code:
    sitedomain: domain.com
    siteemail: email@domain.com
    letsencrypt: yes or no
    sitesslstatus: yes or no
    sitesslredirect: yes or no
    sitepath: /home/nginx/domains/domain.com
    sitewebroot: /home/nginx/domains/domain.com/public
    sitelogs: /home/nginx/domains/domain.com/logs
    ftpuser: ftpusername
    ftppass: ftpuserpass
    mysqldblist: /etc/centminmod/vhosts/domain.com.db
    
    flat file for mysql databases at /etc/centminmod/vhosts/domain.com.db
    Code:
    db1 user1 pass1
    db2 user2 pass2
    addons/mysqladmin_shell.sh already has the ability to take a text file full of listed mysql databases, usernames and passwords and auto create the mysql databases using the specified mysql user/pass listed in the file https://community.centminmod.com/posts/16567/. So I could extend on this for centmin.sh menu option 2, 22 and /usr/bin/nv command line nginx vhost generators :)
     
    • Winner Winner x 3
    • Like Like x 2
  9. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    9:37 AM
    1.9.9
    10.1.10
    Better question would be; is there someone who wouldn't want that? ;)
     
    • Like Like x 2
  10. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    9:37 AM
    1.9.12
    10.0.23
    I executed this:

    and got that returned:

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 117.7228 seconds
    Total YUM Time: 67.723034676 seconds
    Total YUM + Source Download Time: 96.1312
    Total Nginx First Time Install Time: 184.4515
    Total PHP First Time Install Time: 368.2324
    Download Zip From Github Time: 4.1236
    Total Time Other eg. source compiles: 269.1544
    Total Centmin Mod Install Time: 917.9694
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1039.8158 seconds
    ---------------------------------------------------------------------------
    
    Now its time to play live with a site. I do have a paid certificate for that domain - so I now play with centminmod for 'real' ..
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    Heads up guys, need more 123.09beta01 beta testing feedback for fresh initial installs for very important changes just made to this branch to fix compatibility issues with Amazon EC2 based servers which setup sudo users out of the box from @duydangle's reported issues from post 9 onwards here.
     
  12. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    5:37 PM
    Do you needs tests just on Amazon or can I setup up a linode? What version of PHP should I test with?
     
  13. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    Tests on any web host doesn't have to be Amazon EC2, just want to make sure the fixes I made for Amazon EC2 don't mess up non-EC2 based web hosts installation routines :)

    On my usual OpenVZ 1GB test VPS the changes work at least :)

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 93.3069 seconds
    Total YUM Time: 49.562090528 seconds
    Total YUM + Source Download Time: 72.8125
    Total Nginx First Time Install Time: 129.4267
    Total PHP First Time Install Time: 195.1632
    Download Zip From Github Time: 2.2975
    Total Time Other eg. source compiles: 221.0310
    Total Centmin Mod Install Time: 618.4334
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 714.0378 seconds
    ---------------------------------------------------------------------------
     
  14. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    5:37 PM
    Just for fun, I spun up a Linode 96GB (20 Cores) with Centos 7 to see how fast it installed... :)

    GeoLite db download took more then 3 minutes for some reason... so I guess that ruined the timing a bit... Still slower than I expected, but it worked and l was able to load the remote IP. NginX, MariaDB and PHP-FPM all running without errors.

    Didn't want to pay the $960/month, so I deleted the node :) but here are the install stats:

    Code:
    ---------------------------------------------------------------------------
    Total Curl Installer YUM Time: 130.2610 seconds
    Total YUM Time: 371.595088877 seconds
    Total YUM + Source Download Time: 402.1356
    Total Nginx First Time Install Time: 97.8600
    Total PHP First Time Install Time: 237.6444
    Download Zip From Github Time: 1.2325
    Total Time Other eg. source compiles: 307.4285
    Total Centmin Mod Install Time: 1045.0685
    ---------------------------------------------------------------------------
    Total Install Time (curl yum + cm install + zip download): 1176.5620 seconds
    ---------------------------------------------------------------------------
    
    
     
    • Informative Informative x 1
  15. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    @ethanpil thanks for that (y) which linode region ? looks like yum time and source download added ~500+ seconds to that install time so should of been sub <650 seconds on ideal download speeds :)

    Code:
    Total YUM Time: 371.595088877 seconds
    Total YUM + Source Download Time: 402.1356
     
    Last edited: Jan 22, 2016
  16. ethanpil

    ethanpil Active Member

    168
    47
    28
    Nov 8, 2015
    Ratings:
    +87
    Local Time:
    5:37 PM
    Linode was Newark, NJ. I can try once more if you feel it will be useful.
     
  17. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    That's fine.. one test is enough unless curiosity gets the better of you :D
     
  18. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    Last edited: Jan 23, 2016
  19. eva2000

    eva2000 Administrator Staff Member

    29,733
    6,713
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,023
    Local Time:
    5:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    FYI, just merged 123.09beta01-gcc2 code into 123.09beta01 so that ngx_pagespeed 1.10 will work with CentOS 6's lower GCC 4.4.7 version by switching to devtoolset-3 GCC 4.9.1 and switching back from Clang to GCC 4.9.1 for Nginx compilation and install.

    Commit merge 123.09beta01-gcc2 into 123.09beta01 for ngx_pagespeed 1.10+ · centminmod/centminmod@d292caa · GitHub

    Still left ngx_pagespeed 1.9 branch as default for now. You can test ngx_pagespeed 1.10 + ngx_brotli support via setting up within a persistent config file /etc/centminmod/custom_config.inc override variables below and recompiling Nginx via centmin.sh menu option 4:
    Code:
    NGINX_LIBBROTLI=y
    NGXPGSPEED_VER='1.10.33.2-beta'
    NGINX_PAGESPEEDPSOL_VER='1.10.33.2'
    Nginx on CentOS 6 with ngx_pagespeed 1.10 branch and ngx_brotli enabled.
     
    Last edited: Jan 25, 2016
    • Informative Informative x 3
  20. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    9:37 AM
    1.9.12
    10.0.23
    Hi ..

    I wish to have attic backup installed on my 09beta1 host. Attic require a newer python, is my understanding - so is the way outlined by @eva2000 here - https://community.centminmod.com/posts/17469/ - still the correct way to fetch/install a newer python?

    If yes - and after install/upgrade of python - would it be better to look at the borg backup counterpart instead of attic. Borg should be a little more active in development.

    Thanks in advance.