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

PHP PHP 7.0.1 is available

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Dec 18, 2015.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:12 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Good, good...


    Code:
    [root@tvor-ocean ~]# rm -rf /etc/centminmod/php.d/igbinary.ini
    [root@tvor-ocean ~]# rm -rf /etc/centminmod/php.d/suhosin.ini
    [root@tvor-ocean ~]# fpmrestart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    [root@tvor-ocean ~]# php -v
    PHP 7.0.2 (cli) (built: Jan  7 2016 09:59:49) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    [root@tvor-ocean ~]# php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.5
    [root@tvor-ocean ~]# php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    imagick
    imap
    intl
    json
    libxml
    mailparse
    mbstring
    mcrypt
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    redis
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    SPL
    sqlite3
    ssh2
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
  2. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    1:12 PM
    1.9.12
    10.0.23
    I do not wish to stay behind you guys - so I did one upgrade on my LE2 test box..

    Code:
    PHP 7.0.2 (cli) (built: Jan  7 2016 10:05:47) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    
     
  3. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:12 PM
    Mainline
    10.2
    I can't upgrade now, still waiting for my site to have few visitors :|.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:12 PM
    Mainline
    10.2
  6. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:12 PM
    1.9.10
    10.1.11
    Yes i upgraded the php to 7.0.2 too.

    But, I take this error after php installed and that error look on php -v command too.
    Code:
    PHP Warning:  Version warning: Imagick was compiled against Image Magick version 1682 but version 1683 is loaded. Imagick will run but may behave surprisingly in Unknown on line 0
    For fix, I run the centmin mod #15 after php upgrading, and image magick extension works for now without problem.

    Code:
    [root@backup ~]# php -v
    PHP 7.0.2 (cli) (built: Jan  7 2016 13:16:59) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    Btw: Upgrade now supports the memcache and mongodb extensions as far as i see.
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup correct way to fix it
    yup 123.09beta01 branch only has memcache and mongodb php7 branch support
    just the usual maintenance 503 status routines that i normally use :)
     
  8. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:12 PM
    Mainline
    10.2
  9. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    1:12 PM
    1.9.9
    10.1.10
  10. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:12 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    What you set for options when recompiling php:
    • (first option I think) check yum update or something like that
    • replace php ini
     
  11. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    2:12 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Would be awesome for an automated message for visitors for the upgrade :)
    Yes it is a pain in the ass to wait for 5AM to do the upgrade :(
    It will be great also if the error can be customized :)
     
  12. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:12 PM
    Mainline
    10.2
    Same here, haha.
     
  13. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    8:12 PM
    latest
    latest
    Correct me if I'm wrong but the only time nginx and php are down when you're upgrading is the time when you restart it after all the compile processes and stuff. That's less than a few seconds right?

    So isn't a maintenance mode a bit much?
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yes just the time between restarts with nginx and php-fpm can vary from server to server depending on the number of processes and work load on the server
     
  15. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    8:12 PM
    1.15.x
    MariaDB 10.3.x
    I've got more than one webserver front end, rolling upgrades are fun :D
     
  16. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    8:12 PM
    latest
    latest
    Ahh I see. I get it now. Sounds like a good idea then (maintenance mode).
     
  17. KeVo

    KeVo Active Member

    180
    71
    28
    May 28, 2014
    Ratings:
    +101
    Local Time:
    6:12 AM
    1.11.x
    10.1.18
    I'd actually love that. :)
     
  18. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    7:12 AM
    If you are going to do that - which would be awesome btw - would it be possible to also have an option in the menu to take the entire server offline from public view and only show a single html file? It would be great to have the option of taking the server offline whenever, for as long as I needed, via the options menu. :)
     
  19. eva2000

    eva2000 Administrator Staff Member

    54,564
    12,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,793
    Local Time:
    10:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  20. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    7:12 AM