Want more timely Centmin Mod News Updates?
Become a Member

PHP Php 7.0 Final

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

  1. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no that's just the last commit comment being shown at the bottom can be ignored

     
  2. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    But why i can't install the php 7.0.0 final in 123.09stable ? It does php version to 7.1.0-dev ? Any way to prevent this problem ?
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    did you ensure after git update, you exit centmin.sh option 24, then re-enter /usr/local/src/centminmod/ and then run centmin.sh menu option 5 to update PHP 7.0.0. If you don't centmin.sh uses the old code after git update. Also remove /svr-setup/php-7* files first

    Code:
    rm -rf /svr-setup/php-7*
     
  4. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    Okay now with centmin git update after run the php upgrade 7.0.0 has worked and i see that now php 7.0 working well on my big xenforo forum with 77 add-ons... (I tried firstly on my test sever)

    But, i must use redis cache and phpredis for switch that to live publish this.

    So, why you dont support the redis on 123.08stable? Or if possible, how ?

    Must i switch to centminmod 123.09beta01 ?
     
  5. Ahmad

    Ahmad Active Member

    209
    80
    28
    Apr 13, 2015
    Ratings:
    +150
    Local Time:
    6:18 AM
    1.9.9
    10.1.10
    It is because redis support for PHP7 is still in beta.
    You should not use beta software on your production server/site as it may break.
    If you still want to use it then you would need to switch to 123.09beta01 which as-well is still beta software (also in development).
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    123.08stable = stable build so introducing non stable php redis php 7 branches into stable isn't going to happen until 123.09beta01 is tested on first

    so yes 123.09beta01 if you want php 7 redis support and then do testing and feedback :) FYI, the more 123.09beta01 gets tested and feedback given, the faster 123.09stable becomes a reality ;) :D
     
  7. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    When do you guess that available and ready for use the phpredis for php 7.0 ? I will prefer the wait that before use php 7.0.0 yet.
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no idea.. could be whenever php redis folks merge php 7 branch into their main branch or when 123.09beta01 gets adequately tested :)
     
  9. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    So, if this forum is php 7.0 for now, then which cache mechanism do you use in here ? Memcached also doesn't work too. But in my tests, xenforo forum faster then php 5.6.16 with redis server without any cache mechanism. I think php 7 is incredible :)

    Or you are using 129.beta01 without problem...

    I can switch to php 7.0 even without use any cache :)
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    forums here using redis caching on 123.09beta01 with PHP 5.6.16 not PHP 7.0.0 yet

    i have like 95+ addons here, no idea if all are PHP 7 ready.. time will tell
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  12. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    12:18 PM
    1.15.x
    MariaDB 10.3.x
    I've just upgraded to php 7.0 for Sufficient Velocity. I'm using IUS for my rpm's, and the 7.0.1 hasn't yet hit the repo yet.

    I did have the manually compile phpredis for php7, but I do that any with the extension php-ext-lz4 which provides lz4 based compression/decompression for when bulk data is stored into the Redis cache.
     
  13. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    is that something automatically done or done with your redis xenforo cache addons if php-ext-lz4 is detected ?
     
  14. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    12:18 PM
    1.15.x
    MariaDB 10.3.x
    The colinmollenhour/Cm_Cache_Backend_Redis · GitHub project(which is the guts of my XF redis add-on), can use the following types of compression:
    1. snappy
    2. lz4
    3. lzf
    4. gzip
    By default, this kicks in after 20480 bytes, but can be changed with the 'compress_threshold' option.
     
  15. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    sweet learnt something new :D
    ah explains what you said about your Xenforo redis cache addon working still without phpredis compiled support !
     
  16. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    I'm confused.

    So, i'm using the Xon's add-on now for redis caching on xenforo and if i switch to php 7.0.1 and without phpredis, what should i do for that ?
     
  17. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    2:18 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    @Xon's xenforo redis cache addon works with or without phpredis
     
  18. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    7:18 AM
    1.9.10
    10.1.11
    Yes but better works with phpredis or ?
     
  19. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    12:18 PM
    1.15.x
    MariaDB 10.3.x
    There is a performance improvement, but moving from php 5.6 -> php 7 is a much large improvement.
     
  20. rdan

    rdan Well-Known Member

    5,452
    1,418
    113
    May 25, 2014
    Ratings:
    +2,212
    Local Time:
    12:18 PM
    Mainline
    10.2
    Please add this on 09beta @eva2000 :).
    With an option yes/no on centmin as variable :).
    Thanks!