Discover Centmin Mod today
Register Now

PHP/Upgrade question

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Oxide, Apr 2, 2016.

  1. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    5:23 PM
    Hello.

    I am currently running: 1.2.3-eva2000.08

    I have not updated it, and it feels like it's been forever. I do not have a git enviroment, i want to upgrade my centmin easily.

    I also want to upgrade my PHP to 7. How would I go about doing this?

    This is the steps I assume:
    1.) Centmin option 23, then option 1 to setup enviroment.
    ?? What centmin version should I update to, if any??

    Then what do I do after that, to upgrade to PHP 7.0? Is this supported as of today for Centmin? It's been out a while now.

    I am currently running..
    Code:
    PHP 5.6.17 (cli) (built: Jan 21 2016 00:26:27)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
        with Suhosin v0.9.37.1, Copyright (c) 2007-2014, by SektionEins GmbH
    
    Cheers! Any basic steps would be appreciated, i rather not be linked a topic as it's rather confusing.

     
  2. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    5:23 PM
    Did it now. However I'm getting "ErrorException: session_start(): Cannot find serialization handler 'igbinary' - session startup failed (2)".
     
  3. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    9:23 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    There is two files you have to delete after you upgrade to php 7.
    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    Then restart php
     
  4. Oxide

    Oxide Active Member

    534
    29
    28
    Mar 19, 2015
    Ratings:
    +59
    Local Time:
    5:23 PM
    Yup, well I had to downgrade again since the forum software isn't fully compatible, grr.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,163
    12,249
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,825
    Local Time:
    5:23 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+

    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.

    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 swicthing via Git backed environment you can setup. 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 .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.