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

PHP PHP 7.0.5 is available

Discussion in 'Nginx and PHP-FPM news & discussions' started by Revenge, Mar 31, 2016.

  1. Revenge

    Revenge Active Member

    288
    64
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +227
    Local Time:
    8:50 AM
    1.9.x
    10.1.x
    PHP: PHP 7 ChangeLog


     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    nice :)
     
  3. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    9:50 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    We could update via centmin, just choose v7.0.5?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    centmin.sh menu option 5 and enter 7.0.5 :)
    Code (Text):
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.09 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu            
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    

    Code (Text):
    Do you want to run YUM install checks ?  [y/n]
    
    This will increase your upgrade duration time wise.
    Check the change log centminmod.com/changelog.html
    to see if any Nginx or PHP related new additions
    which require checking YUM prequisites are met.
    If no new additions made, you can skip the
    YUM install check to speed up upgrade time.
    
    [y/n]: n
    

    Code (Text):
         ____   _   _  ____       _   _                                _
        |  _ \ | | | ||  _ \  _  | | | | _ __    __ _  _ __  __ _   __| |  ___
        | |_) || |_| || |_) |(_) | | | || '_ \  / _` || '__|/ _` | / _` | / _ \
        |  __/ |  _  ||  __/  _  | |_| || |_) || (_| || |  | (_| || (_| ||  __/
        |_|    |_| |_||_|    (_)  \___/ | .__/  \__, ||_|   \__,_| \__,_| \___|
                                        |_|     |___/                   
    PHP Upgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.19, 7.0.0, NGDEBUG)
    PHP 7.0.0 is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 7.1.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.0.5
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_310316-195201
    ----------------------------------------------------------------
    
    -----------------------------------------------------------------------------------------
    Detected PHP 7.0 branch.
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if you web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
    -----------------------------------------------------------------------------------------
    Do you want to use Zend OPcache [y/n] ? y
    

    end result
    Code (Text):
    php -v
    PHP 7.0.5 (cli) (built: Mar 31 2016 19:56:39) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    filter
    ftp
    gd
    geoip
    gettext
    gmp
    hash
    iconv
    igbinary
    imagick
    imap
    intl
    json
    libxml
    mailparse
    mbstring
    mcrypt
    memcache
    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
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache

    memcache, memcached and redis php extensions loaded
    Code (Text):
    php --ri memcache
    
    memcache
    
    memcache support => enabled
    Version => 3.0.9-dev
    Revision => $Revision$
    
    Directive => Local Value => Master Value
    memcache.allow_failover => 1 => 1
    memcache.max_failover_attempts => 20 => 20
    memcache.default_port => 11211 => 11211
    memcache.chunk_size => 32768 => 32768
    memcache.protocol => ascii => ascii
    memcache.hash_strategy => consistent => consistent
    memcache.hash_function => crc32 => crc32
    memcache.redundancy => 1 => 1
    memcache.session_redundancy => 2 => 2
    memcache.compress_threshold => 20000 => 20000
    memcache.lock_timeout => 15 => 15
    

    Code (Text):
    php --ri memcached
    
    memcached
    
    memcached support => enabled
    Version => 3.0.0b1
    libmemcached version => 1.0.16
    SASL support => yes
    Session support => yes
    igbinary support => no
    json support => yes
    msgpack support => no
    
    Directive => Local Value => Master Value
    memcached.sess_locking => 1 => 1
    memcached.sess_lock_wait_min => 1000 => 1000
    memcached.sess_lock_wait_max => 2000 => 2000
    memcached.sess_lock_retries => 5 => 5
    memcached.sess_lock_expire => 0 => 0
    memcached.sess_binary_protocol => 1 => 1
    memcached.sess_consistent_hash => 0 => 0
    memcached.sess_number_of_replicas => 0 => 0
    memcached.sess_randomize_replica_read => 0 => 0
    memcached.sess_remove_failed_servers => 0 => 0
    memcached.sess_server_failure_limit => 0 => 0
    memcached.sess_connect_timeout => 3000 => 3000
    memcached.sess_sasl_username => no value => no value
    memcached.sess_sasl_password => no value => no value
    memcached.sess_prefix => memc.sess. => memc.sess.
    memcached.sess_persistent => 0 => 0
    memcached.sess_lock_wait => not set => not set
    memcached.sess_lock_max_wait => not set => not set
    memcached.compression_type => fastlz => fastlz
    memcached.compression_factor => 1.3 => 1.3
    memcached.compression_threshold => 2000 => 2000
    memcached.serializer => php => php
    memcached.store_retry_count => 2 => 2
    memcached.default_consistent_hash => 0 => 0
    memcached.default_binary_protocol => 0 => 0
    memcached.default_connect_timeout => 0 => 0
    

    Code (Text):
    php --ri redis 
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.8-devphp7

    imagick PHP extension
    Code (Text):
    php --ri imagick
    
    imagick
    
    imagick module => enabled
    imagick module version => 3.4.1
    imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
    Imagick compiled with ImageMagick version => ImageMagick 6.9.3-7 Q16 x86_64 2016-03-07 http://www.imagemagick.org
    Imagick using ImageMagick library version => ImageMagick 6.9.3-7 Q16 x86_64 2016-03-07 http://www.imagemagick.org
    ImageMagick copyright => Copyright (C) 1999-2016 ImageMagick Studio LLC
    ImageMagick release date => 2016-03-07
    ImageMagick number of supported formats:  => 225
    ImageMagick supported formats => 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FITS, FRACTAL, FTS, G3, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
    
    Directive => Local Value => Master Value
    imagick.locale_fix => 0 => 0
    imagick.skip_version_check => 0 => 0
    imagick.progress_monitor => 0 => 0
     
    Last edited: Apr 1, 2016
    • Like Like x 2
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    3:50 PM
    1.11
    10.2
    I just updated 8 servers all fine :)
     
    • Like Like x 1
  6. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    9:50 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    Upgraded, looks good
     
  7. redbird

    redbird Member

    41
    6
    8
    Aug 28, 2015
    Web
    Ratings:
    +10
    Local Time:
    5:50 PM
    Finally memcache and memcached support

    time to upgrade

    @eva2000 I love your email digests with forum updates. Don't have much time to hang out in the forum, but do go through the digest every time ))
     
    • Like Like x 1
  8. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yup exactly why forum digests were setup - security and bug fix updates definitely need notification to users :)

    I plan to eventually have SMS Text subscription alerts too so centmin mod users can subscribe to a number and only get security updates or important centmin mod news via SMS Text. Of course this would depend on the growth of Centmin Mod Premium memberships :) ;)
     
    • Winner Winner x 1
  9. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    3:50 AM
    1.13.x
    MariaDB 10.1.x
    I just upgraded my system and was check out everything... I keep getting this error:

    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    I'm on the 09 beta.
     
  10. KeVo

    KeVo Active Member

    179
    70
    28
    May 28, 2014
    Ratings:
    +100
    Local Time:
    2:50 AM
    1.11.x
    10.1.18
    Got mine upgraded as well. Working like a charm. :)
     
    • Like Like x 1
  11. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    major PHP versions updates will require reinstalling some PHP extensions.. centmin mod menu option 5 auto detects some php extensions on major PHP version updates and auto recompiles them. But suhosin isn't one of those auto detected PHP extensions. So you need to reinstall suhosin via centmin.sh menu option 18
     
    • Informative Informative x 1
  12. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    3:50 AM
    1.13.x
    MariaDB 10.1.x
    I did re-install suhosin and get an install error.

    Code:
    make: *** [suhosin.lo] Error 1
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [02-Apr-2016 03:59:40] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
    done
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
    
    Everything is up-to-date on my install and pulled the latest changes before I upgraded everything.

    Just a note: this install is totally stock. I haven't modified anything on the install - it's a testing server.
     
    • Informative Informative x 1
  13. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    sounds like suhoins isn't supported by PHP 7 ? they seem to have separate repo branches for PHP 7 Download | SUHOSIN

    GitHub - sektioneins/suhosin7: Suhosin Extension for PHP 7.x

    centmin.sh menu option 18 didn't check for PHP 7.0 version, if it does it would tell you suhosin isn't supported for PHP 7
     
  14. Jimmy

    Jimmy Premium Member Premium Member

    1,114
    247
    63
    Oct 24, 2015
    East Coast USA
    Ratings:
    +596
    Local Time:
    3:50 AM
    1.13.x
    MariaDB 10.1.x
    Ok, so no Suhosin for PHP 7. Like I said, this is just a testing server for me. Saw the error, figured I'd let you know.
     
    • Like Like x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    5:50 PM
    Nginx 1.13.x
    MariaDB 5.5
    thanks for heads up, just updated 123.09beta01 with proper php 7 detection in centmin.sh menu option 18 so when php 7 detected, let user know suhosin not compatible with php 7 :)
     
    • Like Like x 1