Welcome to Centmin Mod Community
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. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    credis is bundled with Xenforo Redis cache code AFAIK so nothing to do

    phpredis is auto installed with Centmin Mod php compiles via centmin.sh menu option 5 as long as PHP version supports it. PHP 7 phpredis support is only in Centmin Mod 123.09beta01 not in 123.08stable

    redis server, is yum installed if you followed my install instructions at Redis - How to install Redis server on Centmin Mod LEMP stack | Centmin Mod Community so yum update Third Party YUM Repos with Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS
    Code:
    yum update redis --enablerepo=remi --disableplugin=priorities
    but latest in remi is redis 3.0.5
    Code:
    yum list redis --enablerepo=remi --disableplugin=priorities -q
    Available Packages
    redis.x86_64                                                                                                             3.0.5-1.el7.remi                                                                                                             remi


     
  2. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:09 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    (y)

    I am on Centmin beta, but after update php to 7.0.1 still is installed phpredis 2.2.5

    Yep, I followed your guide, but remi repo is still on 3.0.5. version
     
  3. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    that's because phpredis on php 7.0.1 is using phpredis non official php7 branch so version is what they have there
     
  4. Jimmy

    Jimmy Well-Known Member

    1,788
    390
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +990
    Local Time:
    11:09 PM
    I was reading in the IPB forum - there is a long thread about IPB supporting PHP 7 - just got an update from the developer about official support, they can't at this time. This post isn't about IPB, it's more about the library they use.

    Basically it comes down to a library they're using - HTML Purifier. It seems that the library isn't supporting PHP 7 as of yet.

    Not sure if running HTML Purifier with PHP 7 would be a security risk, just wanted to post it here and let people know.

    Html Purfier & Php 7
     
    Last edited: Dec 22, 2015
  5. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Actually Xenforo uses Zend Framework IIRC which was heavily tested for PHP 7 along with Wordpress by PHP folks
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  7. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  8. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    11:09 AM
    1.15.x
    MariaDB 10.3.x
  9. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    6:09 AM
    1.9.10
    10.1.11
    Okay then i switch to 123.09beta01 and upgraded php 7.0.1 with php redis and imagick 3.4.0RC2 support. How about the memcache php extension support ? I think not possible at this time.

    Thanks
     
  10. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    indeed... keeping an eye on that one :)
    no memcache PHP extension, but memcached PHP extension works so if your web app can use either it should work. For example, Xenforo can use either memcache PHP or memcached PHP extensions. Prior to Redis Cache, I used memcached PHP extension via libmemcached backend support
     
  11. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    6:09 AM
    1.9.10
    10.1.11
    Ah yes! I'm happy with Redis and today i move my wordpress websites to php 7.0.1 with phpredis support (with upgrade to centminmod 123.09beta01 on this server) and i started to using the Redis Object Cache plugin on wordpress blogs too, looking faster :)

    Forgot the memcached for now :)
     
  12. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    See jump to 123.09beta01 worked well for you :D
     
  13. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looks like igbinary php7-dev branch has been split and renamed Branches · igbinary/igbinary · GitHub
    so need to update Centmin Mod branches

    Code:
    php -v
    PHP 7.0.1 (cli) (built: Dec 23 2015 09:59:48) ( 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
    
    php --ri igbinary
    Extension 'igbinary' not present.
    but found another igbinary fork with a working php7 branch at Sean-Der/igbinary at php7 · GitHub although it hasn't been updated in 4 months so doesn't really take into account PHP 7 GA releases ?

    Code:
    php --ri igbinary
    
    igbinary
    
    igbinary support => enabled
    igbinary version => 1.2.2-dev
    igbinary APC serializer ABI => no
    igbinary session support => yes
    
    Directive => Local Value => Master Value
    igbinary.compact_strings => On => On
    running igbinary php7 branch on Sean-Der fork with PHP 7.0.1 and the included igbinary run-bench.php script
    Code:
    cd /svr-setup/igbinary-php7/benchmark/
    
    php -f run-bench.php
    Unserialize scalar int............................DONE 10.88s
    Unserialize scalar array..........................DONE 7.43s
    Serialize scalar array............................DONE 54.34s
    Unserialize object array..........................DONE 12.97s
    Serialize object array............................DONE 42.11s
    Serialize large strings array.....................DONE 37.71s
    Unserialize large strings array...................DONE 11.00s
    Serialize scalar int..............................DONE 15.61s
    
    result files
    Code:
    ls -lAhrt /svr-setup/igbinary-php7/benchmark/ | grep txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:14 baseline-unserialize-scalar-int.txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:15 baseline-unserialize-scalararray.txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:15 baseline-serialize-scalararray.txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:16 baseline-unserialize-objectarray.txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:16 baseline-serialize-objectarray.txt
    -rw-r--r-- 1 root root 2.8K Dec 23 10:17 baseline-serialize-stringarray.txt
    -rw-r--r-- 1 root root 2.8K Dec 23 10:17 baseline-unserialize-stringarray.txt
    -rw-r--r-- 1 root root 2.9K Dec 23 10:17 baseline-serialize-scalar-int.txt
    seems igbinary php 7 discussions on official git hub repo are at php7 branch? · Issue #40 · igbinary/igbinary · GitHub in which developer said he made a new igbinary7 github repo for PHP 7 at igbinary/igbinary7 · GitHub with issues tracked at PHP7 compatible release · Issue #1 · igbinary/igbinary7 · GitHub

    compiles too against PHP 7.0.1 but no session support ?
    Code:
    php --ri igbinary
    
    igbinary
    
    igbinary support => enabled
    igbinary version => 1.2.2-dev
    igbinary APC serializer ABI => no
    igbinary session support => no
    
    Directive => Local Value => Master Value
    igbinary.compact_strings => On => On
    edit: switched Centmin Mod 123.09beta01 branch to the new official igbinary7 github development repo but disabled session serialization support in igbinary.ini for now switch to official igbinary7 PHP 7 supported repo · centminmod/centminmod@2772f60 · GitHub
    Code:
    php -i | grep session.serialize_handler
    session.serialize_handler => php => php
    Code:
    cd /svr-setup/igbinary-php7/benchmark/
    php -f run-bench.php
    Unserialize scalar int............................DONE 13.79s
    Unserialize scalar array..........................DONE 8.00s
    Serialize scalar array............................DONE 49.93s
    Unserialize object array..........................DONE 0.04s
    Serialize object array............................DONE 38.85s
    Serialize large strings array.....................DONE 37.54s
    Unserialize large strings array...................DONE 10.93s
    Serialize scalar int..............................DONE 15.41s
     
    Last edited: Dec 24, 2015
  14. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Updated centminmod.com cluster of servers all from PHP 7.0.0 to PHP 7.0.1 :D
     
  15. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  16. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nice Learn PHP 7, Find out What's New, and More

     
  17. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  18. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    one for @Matt Williams What Does PHP 7 Mean For WordPress Users And Developers? | Web Hosting Blog

     
  19. ivanc82

    ivanc82 New Member

    27
    2
    3
    Dec 1, 2015
    Ratings:
    +4
    Local Time:
    11:09 AM
    1.11.4
    MariaDB 10
    Hi,

    After i update to 7.0.1 and entered command below to check, it says the redis not present... how can i enable it?
    Code:
    php --ri redis
    Extension 'redis' not present.
    thanks
     
  20. eva2000

    eva2000 Administrator Staff Member

    55,223
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,831
    Local Time:
    1:09 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @ivanc82 so you need to be using 123.09beta01 latest updated code for it