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

Upgrade Upgrade Centmin - questions

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Sunka, Nov 23, 2015.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:01 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I am using Centmin Mod 1.2.3-eva2000.08 which have nginx 1.9.6 so it is older stable branch version.
    If I would update to newer version in same branch, steps for that would be this?
    • option 23
    • option submenu 1
    • option submenu 4
    • option 24
    • logout from ssh
    • login with ssh
    • option 23
    • option submenu 2

    And after that some things confused me.
    Is anything changed with my versions and settings for nginx, php, mariaDB... after centmin upgrade?
    There is no custom persistent config file at /etc/centminmod/custom_config.inc.

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    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.
    see part 2 of what Centmin Mod upgrade involves above
    see Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:01 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    It is too complicated to upgrade and to understood for me. Sorry, but all I have understand is that I have to create new custom_config.inc with custom centmin.sh settings/variables and put it in inc/ or in /etc/centminmod/

    What exactly to put in there I do not know. I understand that for php I need to put somethin like PHP_VERSION='5.6.15' cause I have that version installed. But I do not know how to do that for nginx, mariadb... and .ini and .conf files for all of that. Also, I am not sure what will be changed, and what will be not.

    It is so complicated even this is minor upgrade for centmin cause I am on 1.2.3-eva2000.08 downloaded and installed on 1st november this year.

    I think that I will not upgrade centmin at all in future. I will upgrade what I can, one addon by one (php, mariadb) for what I am sure that not will destroy my forum.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    step 1. update centmin mod code via git outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
    step 2. cd to /usr/local/src/centminmod and run centmin.sh menu options 4 and 5 to upgrade nginx and php-fpm inputing the version numbers you want to upgrade, downgrade or recompile same version. Examples:

    /etc/centminmod/custom_config.inc file (not directory) isn't needed for Nginx or PHP-FPM upgrades of version numbers. It's used for option variable persistence i.e. Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
     
    Last edited: Nov 24, 2015
  5. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:01 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    option 23
    option submenu 1
    option submenu 4
    option 24
    logout from ssh
    login with ssh
    option 23
    option submenu 2
    that is it for step one, and after that first step, nothing will be overwrited in my costum options nor settings

    I allready have newest php version (v5.6.15), so I have to recompile or nothing to do? Will recompiling ruined my custom options for php, better question is will I have to redo some values?

    Also, when i install new php version 7.0 (when redis will be ready for that), I will again have to make step one (when you put 7.0 php version into centmin mod)?

    Upgrading nginx to 1.9.7 will not ruined my settings and variables changed in nginx.conf and other connected with nginx?

    What about imagemagic?

    For upgrading MariaDB from 10.0.20 to 10.1 I have to stop mysql, uninstall mariadb and instal newest version?
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes nothing changes other than centmin mod script code itself.. there maybe a few settings adjustments when centmin.sh runs the first time i.e. 123.09beta01 updates ccache 3.2.2 to 3.2.4 and 123.08stable and 123.09beta01 adjusts for memcached 1.4.25 new options in /etc/init.d/memcached i.e. Stable Branch - auto check/apply changes for memcached 1.4.25 new options in init.d/memcached | Centmin Mod Community

    The respective branch threads below will always list and update major changes to code and system related changes hence you should watch/subscribe to these threads for update notifications etc:

    as long as your custom php options are properly set in custom ini file as outlined at PHP-FPM - CentminMod.com LEMP Nginx web stack for CentOS you will be fine

    and no need to recompile if you already run PHP 5.6.15
    yes centmin mod code update is required to change php 7.0.0 official download url from the github branch RC versions
    no doesn't touch nginx.conf
    no no.. when MariaDB 10.1 is ready I will make available the submenu upgrade option via centmin.sh as outlined at MariaDB - MariaDB 10.1 is stable GA | Centmin Mod Community - i do not advise manual MariaDB 10.1.x upgrade unless you know what you're doing. See MariaDB - MariaDB 10.1.9 and Connector/J 1.3.2 now available | Centmin Mod Community
    the package or php extension ? PHP extension gets updated with PHP upgrade as do other PHP extensions as outlined at PHP-FPM - CentminMod.com LEMP Nginx web stack for CentOS
     
    Last edited: Nov 25, 2015
  9. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:01 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    OK, tonight I will be doing step one and upgrading nginx, cause it will not be night down there in Australia, so if something going wrong, you will hear me screaming. ;)

    And abot MariaDB, is it not allready stable (10.1.9)?
     
  10. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    2:01 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Upgraded centmin and nginx to 1.9.7
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,909
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    11:01 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    as per MariaDB - MariaDB 10.1.9 and Connector/J 1.3.2 now available | Centmin Mod Community i got by the official MariaDB Jira Bug tracker to decide when I use MariaDB System Dashboard - JIRA

    For example