Want to subscribe to topics you're interested in?
Become a Member

Updating Steps

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gawk, Apr 2, 2018.

  1. gawk

    gawk New Member

    10
    5
    3
    Feb 24, 2018
    Ratings:
    +7
    Local Time:
    3:31 PM
    nginx-1.13.9
    MariaDB 10.3.4
    • CentOS Version: CentOS 7 64-bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.9
    • PHP Version Installed: 7.1.14
    • MariaDB MySQL Version Installed: 10.1.31
    • When was last time updated Centmin Mod code base? : Today
    • Persistent Config: Yes
    Hi,

    After updating the Cetnmin code base (via menu option 23), do I need to re-install Centmin via option 2, or just run apt-get/update in order to update my installed packages?
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,422
    7,994
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,308
    Local Time:
    11:31 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    No need to reinstall Centmin Mod itself. Official upgrade page has info too https://centminmod.com/upgrade.html

    Depends on where you're updating from specifically ? Major branch change 123.08stable to 123.09beta01 (centmin.sh menu option 23 submenu option 3) or within a branch 123.09beta01 (centmin.sh menu option 23 submenu option 2). In both instances after the updated Centmin Mod code base is in place, you need to exit centmin.sh menu, re-enter the /usr/local/src/centmin directory to run centmin.sh menu again which will auto sync up latest code base changes in your server environment for stuff that can be updated - some items won't be updated as they override any custom changes you have made and so are skipped to keep intact your changes. Then ideally, you're re-run centmin.sh menu option 4, 5 and 10 at least once if switching major branches (not everytime you update centmin mod code) to get the latest updated nginx, php and memcached versions and config routine compiled binary updates. Full instructions further below.

    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 ] 23
    --------------------------------------------------------
    

    Code (Text):
    --------------------------------------------------------
            Centmin Mod Updater Sub-Menu           
    --------------------------------------------------------
    1). Setup Centmin Mod Github Environment
    2). Update Centmin Mod Current Branch
    3). Update Centmin Mod Newer Branch
    4). Exit
    --------------------------------------------------------
    Enter option [ 1 - 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. 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 switching via Git backed environment you can setup. 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.
    So essentially, you can upgrade from one version branch to another i.e. 123.08stable to 123.09beta01 or higher 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 123.09beta01 etc configuration, then you would need a fresh OS install and fresh 123.09beta01 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.
     
  3. gawk

    gawk New Member

    10
    5
    3
    Feb 24, 2018
    Ratings:
    +7
    Local Time:
    3:31 PM
    nginx-1.13.9
    MariaDB 10.3.4
    Thanks for the additional information!

    I'll try it out again in the next few days once updates appear, but I think I got the hang of it.

    I was clicking around the Centmin menu, and received a notification (after updating the code base and re-starting centmin.sh from /usr/local/src/centmin) that I can run "yum update --disableplugin=priorities --enablerepo=remi" to update the installed packages, and everything seems to be fine now.
     
    • Like Like x 1
..