Want more timely Centmin Mod News Updates?
Become a Member

Install Centmin Mod 1.2.3-eva2000.08 how to install & update

Discussion in 'Install & Upgrades or Pre-Install Questions' started by eva2000, Aug 7, 2015.

Thread Status:
Not open for further replies.
  1. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Memcached Server 1.4.33 Security Fix Release



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to default to Memcached server 1.4.33 security fix release. Once you update your local server Centmin Mod branch code via centmin.sh menu option 23 outlined below. You will need to exit centmin.sh and re-run centmin.sh again and run centmin.sh menu option 10 to update Memcached server to 1.4.33.


    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
    ReleaseNotes1433 ยท memcached/memcached Wiki ยท GitHub

    centmin.sh menu option 10 after 123.09beta01 or 123.08stable update via centmin.sh menu option 23 submenu option 2.

    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 5.2/5.5 & 10.x Upgrade Sub-Menu
    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 ] 10
    --------------------------------------------------------

    check Memcached server version installed
    Code (Text):
    memcached -V
    memcached 1.4.33
    
     
    Last edited: Nov 3, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    PHP 7.1.0 GA Support Update



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds for PHP 7.1.0 General Release support. You'll need to update Centmin Mod via centmin.sh menu option 23 submenu option 2 outlined below and exit centmin.sh and re-run centmin.sh menu option 5 to update to PHP 7.1.0.

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
    example centmin.sh menu option 5 PHP 7.1.0 update

    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 5.2/5.5 & 10.x Upgrade Sub-Menu
    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 ] 5
    --------------------------------------------------------
    

    Code (Text):
    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
         ____   _   _  ____       _   _                                _     
        |  _ \ | | | ||  _ \  _  | | | | _ __    __ _  _ __  __ _   __| |  ___
        | |_) || |_| || |_) |(_) | | | || '_ \  / _` || '__|/ _` | / _` | / _ \
        |  __/ |  _  ||  __/  _  | |_| || |_) || (_| || |  | (_| || (_| ||  __/
        |_|    |_| |_||_|    (_)  \___/ | .__/  \__, ||_|   \__,_| \__,_| \___|
                                        |_|     |___/                       
    
    PHP Upgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.28, 7.0.10, NGDEBUG)
    PHP 7.0.10 is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 7.1.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.1.0
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_021216-081759
    Want to update to latest php-fpm.conf ? (overwrites will auto backup existing php-fpm.conf)
    existing php-fpm.conf will be backed up at /usr/local/etc/php-fpm.conf-oldversion_021216-081759
    ----------------------------------------------------------------
    Update & overwrite your existing php-fpm.conf [y/n]: n
    ----------------------------------------------------------------
    

    Code (Text):
    -----------------------------------------------------------------------------------------
    Detected PHP 7.1 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y

    end result
    Code (Text):
    php -v     
    PHP 7.1.0 (cli) (built: Dec  2 2016 08:21:30) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.1.0-dev, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.1.0, Copyright (c) 1999-2016, by Zend Technologies

    php extensions
    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    ldap
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    CentOS 7 EPEL Fixes



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds. Issue applies to CentOS 7 servers only. A recent EPEL libc-client & uw-imap-devel package bugged YUM updates may have broken both PHP updates and ability to properly do yum updates. It's important to update your Centmin Mod 123.08stable or 123.09beta01 local code on your server to fix this via centmin.sh menu option 23 submenu option 2 update + a re-run of centmin.sh after update to apply fix automatically. Without updating, you will not be able to properly do PHP upgrades or run YUM updates.

    For details for bug and fix outlined at Beta Branch - CentOS 7 workaround fix for EPEL uw-imap-devel & libc-client issues

    Fixed CentOS 7 systems should have version locked 2007f-16 based libc-client and uw-imap-devel EPEL yum packages listed from command
    Code (Text):
    yum versionlock list
    

    Code (Text):
    yum versionlock list
    Loaded plugins: fastestmirror, priorities, versionlock
    0:libc-client-2007f-16.el7.*
    0:uw-imap-devel-2007f-16.el7.*
    versionlock list done
    

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
    Last edited: Aug 3, 2017
  7. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated both Centmin Mod 123.08stable and 123.09beta01 builds to update Varnish Cache 4.1 yum repo hosting/url changes outlined at https://community.centminmod.com/threads/update-varnish-cache-4-1-yum-repo-setup-routine.12770/

    To update your Centmin Mod builds, use centmin.sh menu option 23 submenu option 2 and follow instructions at centminmod.com/upgrade.html and respective version threads below:
     
  8. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    MariaDB CentOS 7.4 Workaround Fix



    Updated both Centmin Mod 123.08stable and 123.09beta01 builds with permanent workaround fix for MariaDB MySQL server not restarting after CentOS 7.4 updates. The issue is CentOS 7.4 only issue and MariaDB 10.1 I believe as systemd protections didn't get added until MariaDB 10.1. So CentOS 6 and MariaDB 10.0.x users (123.08stable) would probably not experience the issue. Details here MariaDB MySQL Not Restarting After CentOS 7.4 Update Fix

    To update your Centmin Mod builds follow instructions at centminmod.com/upgrade.html and respective version threads below:
    After updating Centmin Mod, run centmin.sh one more time for fix to auto populate to /etc/systemd/system/mariadb.service.d/protecthome.conf which should now contain
    Code (Text):
    [Service]
    ProtectSystem=false
    ProtectHome=false
    

    When you re-run centmin.sh on updated code, you will get a one time message like below:
    Code (Text):
    ./centmin.sh 
    
    Update MariaDB 10 setting for ProtectSystem=false addition
    
     
    Last edited: Sep 14, 2017
  9. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  10. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    Centmin Mod 123.08stable CentOS 6.10 Compatibiltiy Bug Fix



    Big bug fix in Centmin Mod 123.08stable for CentOS 6.10 compatibility. The focus on 123.09beta01 development meant I overlooked updated 123.08stable for full CentOS 6.10 compatibility which mean folks updating from CentOS 6.9 to 6.10, experienced broken 123.08stable routines for like updating nginx and php as the CentOS version checks only went to 6.9 and not 6.10.

    If you did just a fresh install of Centmin Mod 123.08stable, with bugged build and failed nginx and PHP installs, best to just reload CentOS 6.10 and reinstall fresh Centmin Mod 123.08stable. Or better yet use Centmin Mod 123.09beta01 which is miles ahead in terms of compatibility, features and advances compared to 123.08stable.

    Existing 123.08stable users ONLY



    But if you are on Centmin Mod 123.08stable still and need to update to fixed build, run these commands from SSH - which are same commands outlined for 123.07 to 123.08stable upgrades which is first version to use Git for managing updates on official upgrade page here.

    Whitelist Git 9418 port only do this if running 123.08stable
    Code (Text):
    sed -i "s/TCP_IN = \"/TCP_IN = \"9418,/g" /etc/csf/csf.conf
    sed -i "s/TCP6_IN = \"/TCP6_IN = \"9418,/g" /etc/csf/csf.conf 
    sed -i "s/TCP_OUT = \"/TCP_OUT = \"9418,/g" /etc/csf/csf.conf
    sed -i "s/TCP6_OUT = \"/TCP6_OUT = \"9418,/g" /etc/csf/csf.conf
    csf -ra
    

    Code (Text):
    yum -y install git wget nano bc unzip
    cd /usr/local/src
    mv centminmod centminmod-orig
    branchname=123.08stable
    git clone -b ${branchname} --depth=1 https://github.com/centminmod/centminmod.git centminmod
    cd centminmod
    ./centmin.sh
    


    Then if needed run centmin.sh menu option 4 to update nginx and option 5 to update PHP-FPM version.

    If you want to switch from 123.08stable to 123.09beta01, see instructions in first post under heading How to switch to 123.09beta01 branch ? for using centmin.sh menu option 23 submenu option 3 to switch to 123.09beta01 branch at https://community.centminmod.com/threads/centmin-mod-09-beta-branch-testing.4128/

    If you have questions about this start a new thread in https://community.centminmod.com/forums/install-upgrades-or-pre-install-questions.8/ forums.
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  12. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    123.08stable Nginx bug fix updates



    123.08stable Nginx routine sometimes seems to fail with Nginx 1.15.12 to 1.17.0 updates via centmin.sh menu option 4, so updated with fixes. You can update 123.08stable to latest via centmin.sh menu option 23 submenu options 1 and 2 outlined at Install - Centmin Mod 1.2.3-eva2000.08 how to install & update or better yet switch to 123.09beta01 branch via centmin.sh menu option 23 submenu option 1 then 3 outlined under heading How to switch to 123.09beta01 branch ? at Upgrade - PHP-FPM - Centmin Mod .09 beta branch Testing. Once updated, you can re-run centmin.sh menu option 4 to update to Nginx 1.17.0.
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    123.08stable Nginx bug fix updates etc



    While it's recommended to install 123.09beta01 as outlined on official install page at Centmin Mod LEMP Stack Install Nginx on CentOS, some folks may have 123.08stable installed. Centmin Mod 123.08stable got some bug fixes and updates outlined at https://community.centminmod.com/th...l-imagick-php-routines-in-123-08stable.19644/
    • switch to LIBRESSL_SWITCH='n' default to move nginx back to openssl 1.0.2u builds due to libressl errors with nginx 1.17.10. So if you have persistent config file /etc/centminmod/custom_config.inc set to LIBRESSL_SWITCH='y', remove that line or set to LIBRESSL_SWITCH='n'
    • update to nginx 1.17.10 & pcre 8.44
    • update /usr/local/nginx/conf/nginx.conf template for 123.08stable due to 'nginx: [warn] could not build optimal variables_hash' error with nginx 1.17.10. Existing users can update via centmin.sh menu option 23, submenu option 2, then exit centmin.sh menu and then re-run centmin.sh once for fix to apply
    • update download link for openssl 1.0.2 branch
    • update imagick PHP routines and imagemagick remi routine backported from 123.09beta01
    • Existing users can update all above via centmin.sh menu option 23, submenu option 2 for 123.08stable before running centmin.sh menu option 4 and 15. You may be prompted to run centmin.sh menu option 23 submenu option 1 to setup git environment if you haven't done the 1 time task before. Then after running submenu option 1, you will already be on latest 123.08stable with the updates. Nginx build in 123.08stable still uses clang instead of GCC compiler like newer 123.09beta01 builds
     
  14. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    2:03 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
Thread Status:
Not open for further replies.