Want more timely Centmin Mod News Updates?
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
    323
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +521
    Local Time:
    12:29 AM
    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:
    12:29 AM
    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 Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    6:29 AM
    Mainline
    10.2
    I can't upgrade now, still waiting for my site to have few visitors :|.
     
  4. eva2000

    eva2000 Administrator Staff Member

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    8:29 AM
    Nginx 1.21.x
    MariaDB 10.x
  5. rdan

    rdan Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    6:29 AM
    Mainline
    10.2
  6. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    1:29 AM
    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

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    8:29 AM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    6:29 AM
    Mainline
    10.2
  9. Ahmad

    Ahmad Active Member

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

    Sunka Well-Known Member

    1,150
    323
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +521
    Local Time:
    12:29 AM
    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

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    1:29 AM
    Nginx-1.17.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 Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    6:29 AM
    Mainline
    10.2
    Same here, haha.
     
  13. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    6:29 AM
    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

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    8:29 AM
    Nginx 1.21.x
    MariaDB 10.x
    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:
    6:29 AM
    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:
    6:29 AM
    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:
    5:29 PM
    1.11.x
    10.1.18
    I'd actually love that. :)
     
  18. Jimmy

    Jimmy Premium Member Premium Member

    1,761
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +967
    Local Time:
    6:29 PM
    1.17.x
    MariaDB 10.3.x
    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

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    8:29 AM
    Nginx 1.21.x
    MariaDB 10.x
  20. Jimmy

    Jimmy Premium Member Premium Member

    1,761
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +967
    Local Time:
    6:29 PM
    1.17.x
    MariaDB 10.3.x