Learn about Centmin Mod LEMP Stack today
Register Now

Upgrade Certain Options Are Overridden

Discussion in 'Install & Upgrades or Pre-Install Questions' started by BamaStangGuy, Jul 28, 2015.

  1. BamaStangGuy

    BamaStangGuy Active Member

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    5:32 PM
    I know this is being picky and all but we run a lot of sites so this means changing each server setup each time we want to make sure that we have the updated code.

    There are a few things we do not setup when it comes to Nginx because we simply do not use them. SPDY, Pagespeed and GEOIP we change to no.

    What kind of options could we come up with so that these settings are not overwritten when we fetch the latest code for Centminmod, if any?
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,984
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,766
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    For Centmin Mod 1.2.3-eva2000.08 beta and stable and higher versions, if you want to customise their centmin.sh options, you can override and keep persistent config changes which remain after Centmin Mod code changes/updates at ${CONFIGSCANBASE}/custom_config.inc which defaults to /etc/centminmod/custom_config.inc as outlined at CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ? | Page 22

    supports 2 locations for custom_config.inc
    1. inc/custom_config.inc where centmin.sh base directory resides
    2. at ${CONFIGSCANBASE}/custom_config.inc which defaults to /etc/centminmod/custom_config.inc
    to override centmin.sh settings and allow them to persist on centmin mod code updates, create a custom_config.inc at one of the 2 locations mentioned above and add the centmin.sh option to the custom_config.inc file i.e.

    to set PHP 5.6.8 + Zend Opcache as default place in manually created file at /etc/centminmod/custom_config.inc the following variables which are in centmin.sh to override centmin.sh ones
    Code:
    PHP_VERSION='5.6.8'
    ZOPCACHEDFT='y'
    
     
    • Like Like x 1
  3. BamaStangGuy

    BamaStangGuy Active Member

    465
    136
    43
    May 25, 2014
    Ratings:
    +179
    Local Time:
    5:32 PM
    Fantastic. Thanks!
     
  4. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +161
    Local Time:
    6:32 AM
    latest
    latest
    custom_config.inc has been removed in 123.09beta01?

    [centminmod-123.09beta01]# locate custom_config.inc
    [centminmod-123.09beta01]#

    how to override the values now for new versions?
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,984
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,766
    Local Time:
    8:32 AM
    Nginx 1.13.x
    MariaDB 5.5
    it's never included by default, it's a file you create yourself at those mentioned locations at centminmod.com/upgrade.html#persistent :)