Discover Centmin Mod today
Register Now

Install Centminmod with Custom changes

Discussion in 'Install & Upgrades or Pre-Install Questions' started by R0rke, Aug 31, 2016.

  1. R0rke

    R0rke Member

    83
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    2:46 AM
    1.11.1
    10.1
    how can i install PHP 7 in first fresh install ?
    for example in fresh install centminmod automatic will install PHP 5.6.25 i want to just install PHP 7.0.10
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    7:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod 123.09beta01 can do this out of box see the betainstaller7.sh version install Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller7.sh && chmod 0700 betainstaller7.sh && bash betainstaller7.sh


    or you can do it manually using persistent config file override if you use betainstaller.sh instead of betainstaller7.sh
    Code (Text):
    mkdir -p /etc/centminmod/
    touch /etc/centminmod/custom_config.inc
    echo "PHP_VERSION='7.0.10'" >> /etc/centminmod/custom_config.inc
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
    


    for 123.09beta01, i recommend the 1st option :)

    2nd option can override other variables too i.e. see FAQ 31 & 39