Want to subscribe to topics you're interested in?
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

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    9:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    official Redis documentation ;)

     
  2. rdan

    rdan Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    7:18 AM
    Mainline
    10.2
  3. rdan

    rdan Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    7:18 AM
    Mainline
    10.2
  4. Sunka

    Sunka Well-Known Member

    1,150
    323
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +521
    Local Time:
    1:18 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    All went OK (I think).


    Code:
    [root@tvor-ocean ~]# rm -rf /etc/centminmod/php.d/igbinary.ini
    [root@tvor-ocean ~]# rm -rf /etc/centminmod/php.d/memcache.ini
    [root@tvor-ocean ~]# rm -rf /etc/centminmod/php.d/mongodb.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.1 (cli) (built: Dec 17 2015 20:19:41) ( 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
    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
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
  5. eva2000

    eva2000 Administrator Staff Member

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    9:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    looks good :D
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    2:18 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    It will help a lot :)
     
  7. eva2000

    eva2000 Administrator Staff Member

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

    Jimmy Premium Member Premium Member

    1,761
    381
    83
    Oct 24, 2015
    East Coast USA
    Ratings:
    +967
    Local Time:
    7:18 PM
    1.17.x
    MariaDB 10.3.x
    Upgraded to 7.0.1 and everything is working fine and dandy like cotton candy. ;)
     
  9. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:18 AM
    1.9.10
    10.1.11
    I'm waiting that redis enabled with php 7.0.1 on V1.2.3-Eva2000.08 :cry:
     
  10. rdan

    rdan Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    7:18 AM
    Mainline
    10.2
    What's wrong with using 09beta branch? I'm using it always :D.
     
  11. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:18 AM
    1.9.10
    10.1.11
    I'm afraid to use any beta software on real time very active xenforo website :)

    But i think i will go to beta, i can't stand :D
     
  12. pamamolf

    pamamolf Premium Member Premium Member

    3,989
    414
    83
    May 31, 2014
    Ratings:
    +804
    Local Time:
    2:18 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    I am using also always the beta :)
     
  13. eva2000

    eva2000 Administrator Staff Member

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    9:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    using the beta on this forum and centminmod.com cluster too

    but for the purposes of ironing out those bugs for stable release :D
     
  14. rdan

    rdan Premium Member Premium Member

    5,299
    1,326
    113
    May 25, 2014
    Ratings:
    +2,050
    Local Time:
    7:18 AM
    Mainline
    10.2
    I manage heavy traffic sites also, and beta branch is always fine :).

    Here's I always do:
    Always use the Stable Branch/Version on initial install of VPS/Dedicated server :).
    Then just use the beta branch to update PHP/NGINX.
     
  15. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:18 AM
    1.9.10
    10.1.11
    @eva2000
    I'm using 123.08stable as you know and if i want to switch the 123.09beta can i switch without any problem and it will be save the my custom nginx-phpfpm configurations, csf configurations and everything etc ?

    When i look the centmin mod core upgrade, should i enter the branch name to "123.09beta01" ? Because i see different 09beta01-gcc or 123.09beta01le versions too. Also, i want to keep php 7.0.1 installation so i will go edit the centmin.sh for php version variable too ?

    Thanks
     
  16. eva2000

    eva2000 Administrator Staff Member

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    9:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    for 123.09 betas better to ask in thread at Beta Branch - Centmin Mod .09 beta branch Testing | Centmin Mod Community but yes enter 123.09beta01 as the branch to switch to, other ones are experimental branches 123.09beta01le for letsencrypt support and 123.09beta01-gcc is for ngx_pagespeed 1.10 support
    Generally upgrade branches as outlined at centminmod.com/upgrade.html will keep your nginx, csf configurations etc but override any centmin.sh settings you set UNLESS you use persistent config file outlined at centminmod.com/upgrade.html#persistent

    If you want to customise the centmin.sh options, you can override and keep persistent config changes which remain after Centmin Mod code changes/updates at ${CONFIGSCANBASE}/custom_config.inc which defaults to /etc/centminmod/custom_config.inc as outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS and CentOS 7.x - How to help test .08 CentOS 7 Betas with Github code ?

    supports 2 locations for custom_config.inc
    1. inc/custom_config.inc where centmin.sh base directory resides
    2. at ${CONFIGSCANBASE}/custom_config.inc which defaults to /etc/centminmod/custom_config.inc
    to override centmin.sh settings and allow them to persist on centmin mod code updates, create a custom_config.inc at one of the 2 locations mentioned above and add the centmin.sh option to the custom_config.inc file i.e.

    to set PHP 5.6.16 + Zend Opcache as default place in manually created file at /etc/centminmod/custom_config.inc the following variables which are in centmin.sh to override centmin.sh ones
    Code:
    PHP_VERSION='5.6.16'
    ZOPCACHEDFT='y'
    

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  17. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:18 AM
    1.9.10
    10.1.11
    And i have upgraded the mariadb 10.0.23 and nginx 1.9.9 so should i add the mariadb version to custom_config.inc too ? I don't want to lose nginx,phpfpm,mysql-mariadb,php,csf,cron configurations.

    So, if i enter the PHP_VERSION='7.0.1' to custom_config.inc file, everything will be fine for me ?

    Btw: I'm not sure the php 7.0.1 supports the redis.. So, I can use php 7.0.0 too.
     
  18. eva2000

    eva2000 Administrator Staff Member

    48,977
    11,224
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,474
    Local Time:
    9:18 AM
    Nginx 1.21.x
    MariaDB 10.x
    well technically PHP doesn't need a value added as everytime you run centmin.sh menu option 5, you get prompted for php version you want to upgrade. Updating centmin mod code, won't change installed php version until you run centmin.sh menu option 5.

    As to mariadb, it's yum installed so you have no control over 10.0.xx minor upgrade versions used see Third Party YUM Repos with Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS and upgrade notes on MariaDB MySQL - CentminMod.com LEMP Nginx web stack for CentOS regarding MariaDB 10 MySQL section

    As to redis support, is this for Xenforo redis cache addon by @Xon ? if so, then phpredis extension is optional as the redis cache addon can work without phpredis extension see PHP - Php 7.0 Final | Page 7 | Centmin Mod Community it falls back to Credis library if phpredis doesn't exist. But just using Centmin Mod 123.09beta01 has phpredis support for PHP 7 :)

    Best advice is to setup a test VPS and try test upgrades of Centmin Mod and see what is retained and what isn't when you just do upgrades of Centmin Mod code only, without running centmin.sh menu options to upgrade php and nginx.
     
  19. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    2:18 AM
    1.9.10
    10.1.11
    Yes, i need to use redis for xenforo redis cache server plugin by Xon as you told. But i don't understand exactly if i go upgrade to php 7.0.1 so what can i do for use redis with all performance options ?

    Thanks @eva2000
     
  20. Sunka

    Sunka Well-Known Member

    1,150
    323
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +521
    Local Time:
    1:18 AM
    Nginx 1.17.9
    MariaDB 10.3.22