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

Access to the PHP71 preview branch?

Discussion in 'Beta release code' started by Slartibartfast, Apr 11, 2019.

Tags:
  1. Slartibartfast

    Slartibartfast New Member

    3
    0
    1
    Apr 11, 2019
    Ratings:
    +0
    Local Time:
    7:16 PM
    1.15.10
    10.1.38
    Centminmod 123.09beta1 on CentOS 7

    We run IPB and need to upgrade to the latest version of Invision Power Services, which requires PHP 7.

    Unfortunately the existing forum only supports PHP 5.

    Is it possible to get access to the beta branch that includes the side-by-side PHP7 addon?
     
  2. eva2000

    eva2000 Administrator Staff Member

    40,620
    9,014
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,880
    Local Time:
    4:16 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Fresh install of 123.08stable and 123.09beta01 instructions are both on official install page at https://centminmod.com/install.html

    If you are switching from 123.08stable existing install to upgrade to 123.09beta01, then below instructions

    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 123.08stable that means centmin.sh menu option 23 submenu option 2 (if you previously ran submenu option 1) first, then exit centmin.sh, re-enter /usr/local/src/centminmod and re-run centmin.sh menu.

    For 123.09beta01 and higher that means running SSH command = cmupdate and then re-enter /usr/local/src/centminmod and re-run centmin.sh menu.

    Example of using 123.09beta01 cmupdate command to update Centmin Mod code on your server
    Code (Text):
    cmupdate
    No local changes to save
    Updating 5f92047..9d06ee8
    Fast-forward
     stackscripts/stackscript.sh | 11 ++++++++---
     1 file changed, 8 insertions(+), 3 deletions(-)
    


    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. eva2000

    eva2000 Administrator Staff Member

    40,620
    9,014
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,880
    Local Time:
    4:16 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    style="display:inline-block;min-width:400px;max-width:970px;width:95%;height:90px" data-ad-client="ca-pub-6669518204467592" data-ad-slot="4024536743" data-ad-format="auto">
  4. Slartibartfast

    Slartibartfast New Member

    3
    0
    1
    Apr 11, 2019
    Ratings:
    +0
    Local Time:
    7:16 PM
    1.15.10
    10.1.38
    Yes, that's what I was asking about. That's a shame.

    Since I only need PHP 7 running alongside 5 for the duration of the forum upgrade, is there any reason why I can't install REMI's PHP71 package and configure it manually? Will it interfere with other parts of centminmod?
     
  5. eva2000

    eva2000 Administrator Staff Member

    40,620
    9,014
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,880
    Local Time:
    4:16 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah it would out of box but you'd need to know how to reconfigure Remi PHP 7 so that it doesn't interfere. The easiest thing to do is do upgrade on separate VPS server with PHP 7 - just spin up an hourly billed VPS from Upcloud, Linode, DigitalOcean or Vultr for the upgrade itself by making copy of existing forum on the separate VPS server. That's how I usually do it as I never touch the live server files/database for upgrades, always only do upgrades on a copy of the live data/files.