Welcome to Centmin Mod Community
Become a Member

Beta Branch add memcache PHP extension PHP 7 support

Discussion in 'Centmin Mod Github Commits' started by eva2000, Dec 28, 2015.

  1. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:43 PM
    Nginx 1.13.x
    MariaDB 5.5
  2. Lundz

    Lundz Member

    42
    6
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    1:43 PM
    This doesn't work if PHP 7.0.x has been chosen. The conditional fails and it all fallback to use the old branch.

    It should be somthing like
    Code:
    if [[ "$PHPMUVER" >= '7.0.0' || "$PHPMUVER" = 'NGDEBUG' || "$PHPSEVEN_CHECKVER" = '0' ]]; then
    or

     
  3. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    if should work and be
    Code:
    if [[ "$PHPMUVER" = '7.0' || "$PHPMUVER" = 'NGDEBUG' || "$PHPSEVEN_CHECKVER" = '0' ]]; then
    as PHPMUVER is compared against just the 1st 3 characters of your inputted version so 7.0.0 and 7.0.1 both evaluate against 7.0

    Code:
    PHPMUVER=$(echo "$phpver" | cut -d . -f1,2)
     
  4. Lundz

    Lundz Member

    42
    6
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    1:43 PM
    Okay sorry.

    I'll take it back, i must have been doing something wrong at initial install of centminmod then. Because by looking at my log files i saw that all my extensions where failing to compile.. :p

    Anyway i found out that i had set the variable to remove binary files of php to y. On initial install.

    Sat to to y and recompiled and yep got 3.09dev memache so mistake on my part sorry.

    So you should add a gaurd to not delete PHP binary files if any extensions is compiled after PHP.
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    which variable ? STRIPPHP='y' ?
     
  6. Lundz

    Lundz Member

    42
    6
    8
    May 28, 2014
    Ratings:
    +7
    Local Time:
    1:43 PM
    Might be yes. But i can't remember.
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    i ask as setting it to no shouldn't interfere with the php extensions that compiled after php
     
  8. Mask

    Mask Active Member

    104
    29
    28
    Nov 10, 2014
    Ratings:
    +35
    Local Time:
    4:43 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    Wondering from reading different posts ...
    Is memcache not 100% compatible with php7 ??

    Also what if I am on version 08 of CMM and using php7?? Do I need to be on beta branch to get memcache/redis working with PHP7?
     
  9. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    9:43 PM
    Nginx 1.13.x
    MariaDB 5.5
    only compatible in 123.09beta01 so yes need to update

    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.
     
    • Like Like x 1