Get the most out of your Centmin Mod LEMP stack
Become a Member

Upgrade Certain Options Are Overridden

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

  1. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    12:39 AM
    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

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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'
    
     
  3. BamaStangGuy

    BamaStangGuy Active Member

    668
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    12:39 AM
    Fantastic. Thanks!
     
  4. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    1:39 PM
    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

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:39 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it's never included by default, it's a file you create yourself at those mentioned locations at centminmod.com/upgrade.html#persistent :)