Learn about Centmin Mod LEMP Stack today
Register Now

PHP Php 7.0 Final

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

  1. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    oh good! Just installed a fresh copy of beta01!
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    still need to update as a few more changes were committed since heh, hence centmin.sh menu option 23 comes in handy :)
     
  3. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    very much so! im learning something new everyday thanks to you! BTW: no issues yet for php7 GA - should i leave redis uncommented after the install?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah test and see 123.09beta01 with redis php7 branch support added

    Code:
    --------------------------------------------------------
    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 + WP Super Cache
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    
    Code:
    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
    PHP Upgrade - Would you like to continue? [y/n] y
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.5.30, 7.0.0, NGDEBUG)
    PHP 7.0.0 is experimental in alpha status and may have broken PHP extensions.
    NGDEBUG is PHP 7.0.0 minus incompatible PHP extensions
    ----------------------------------------------------------------
    Enter PHP Version number you want to upgrade/downgrade to: 7.0.0
    ----------------------------------------------------------------
    Want to update to latest php-fpm.conf ? (overwrites will auto backup existing php-fpm.conf)
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_041215-044840
    existing php-fpm.conf will be backed up at /usr/local/etc/php-fpm.conf-oldversion_041215-044840
    ----------------------------------------------------------------
    Update & overwrite your existing php-fpm.conf [y/n]: n
    ----------------------------------------------------------------
    
    Code:
    -----------------------------------------------------------------------------------------
    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
    
    Code:
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0
    7.0
    0
    ***************************************************
    PHP 7.0 detected.. remove unsupported PHP extensions manually
    by removing their ini files:
    ***************************************************
    
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    rm -rf /etc/centminmod/php.d/memcache.ini
    rm -rf /etc/centminmod/php.d/mongodb.ini
    #rm -rf /etc/centminmod/php.d/redis.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    
    then restart PHP-FPM again...
    remove
    Code:
    rm -rf /etc/centminmod/php.d/igbinary.ini
    #rm -rf /etc/centminmod/php.d/imagick.ini
    rm -rf /etc/centminmod/php.d/memcache.ini
    rm -rf /etc/centminmod/php.d/mongodb.ini
    #rm -rf /etc/centminmod/php.d/redis.ini
    rm -rf /etc/centminmod/php.d/suhosin.ini
    fpmrestart
    Code:
    php -v
    PHP 7.0.0 (cli) (built: Dec  4 2015 04:55:02) ( 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
    Code:
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.5
    Code:
    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
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
     
    • Like Like x 1
  5. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    did you do the centmin.sh menu option 23 subemenu 1 run to setup git environment ? if you did make sure you have latest 123.09beta01 code first

    Code:
    cmdir
    git branch -a
    git log -1
    
    should give you following output
    Code:
    [root@centos7 ~]# cmdir
    /usr/local/src/centminmod ~
    
    [root@centos7 centminmod]# git branch -a
    * 123.09beta01
      master
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08beta03
      remotes/origin/123.08beta03-el7ffmpeg-fix
      remotes/origin/123.08beta03-libresslclang
      remotes/origin/123.08beta03-rtmp
      remotes/origin/123.08beta03clang
      remotes/origin/123.08beta03curl743
      remotes/origin/123.08beta03libressl
      remotes/origin/123.08beta03redis
      remotes/origin/123.08centos7beta01
      remotes/origin/123.08centos7beta02
      remotes/origin/123.08stable
      remotes/origin/123.08stable-nginxhttp2
      remotes/origin/123.08zerodown
      remotes/origin/123.09beta01
      remotes/origin/123.09beta01le
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    
    commented out my email for scrapers/email harvesters heh - outputs most recent commit details, should match Commits · centminmod/centminmod · GitHub
    Code:
    [root@centos7 centminmod]# git log -1
    commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064
    Author: George Liu <EMAIL>
    Date:   Fri Dec 4 14:48:19 2015 +1000
    
        update inc/php_upgrade.inc
    
        comment out /etc/centminmod/php.d/redis.ini removal line
    and a git pull will update you to latest code (same as running centmin.sh menu option 23 submenu option 2)
    Code:
    [root@centos7 centminmod]# git pull
    Already up-to-date.
    FYI, if you do centmin.sh menu option 23 submenu option 2 run, need to exit centmin.sh via menu option 24 and re-launch centmin.sh for the updated files to register with centmin.sh
     
    Last edited: Dec 4, 2015
  7. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    No, but I am now (y)
     
    • Like Like x 1
  8. Matt

    Matt Moderator Staff Member

    694
    320
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +447
    Local Time:
    1:41 AM
    1.7.1
    MariaDB 10
    I've just updated the centmin codebase, and it's still pulling 7.1 when I specify 7.0.0 as the version.
     
    • Informative Informative x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
  10. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    Code:
    [root@vultr centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod
    [root@vultr centminmod]# git branch -a
    * 123.09beta01
      master
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08beta03
      remotes/origin/123.08beta03-el7ffmpeg-fix
      remotes/origin/123.08beta03-libresslclang
      remotes/origin/123.08beta03-rtmp
      remotes/origin/123.08beta03clang
      remotes/origin/123.08beta03curl743
      remotes/origin/123.08beta03libressl
      remotes/origin/123.08beta03redis
      remotes/origin/123.08centos7beta01
      remotes/origin/123.08centos7beta02
      remotes/origin/123.08stable
      remotes/origin/123.08stable-nginxhttp2
      remotes/origin/123.08zerodown
      remotes/origin/123.09beta01
      remotes/origin/123.09beta01le
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    [root@vultr centminmod]# git log -1
    commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064
    Author: George Liu <EMAL>
    Date:   Fri Dec 4 14:48:19 2015 +1000
    
        update inc/php_upgrade.inc
    
        comment out /etc/centminmod/php.d/redis.ini removal line
    [root@vultr centminmod]# php --ri redis
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
    Extension 'redis' not present.
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    @Matt Williams try exiting centmin.sh and relaunch centmin.sh and upgrade again
     
  12. Matt

    Matt Moderator Staff Member

    694
    320
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +447
    Local Time:
    1:41 AM
    1.7.1
    MariaDB 10
    https://mattwservices.co.uk/centminmod_1.2.3-eva2000.09_041215-053009_php_upgrade.txt

    Going to try it again, as I've double checked the code update has been applied by git

    Code:
    [root@host centminmod]# cmdir
    /usr/local/src/centminmod /usr/local/src/centminmod
    [root@host centminmod]# git branch -a
    * 123.09beta01
      master
      remotes/origin/123.06stable
      remotes/origin/123.07stable
      remotes/origin/123.08beta03
      remotes/origin/123.08beta03-el7ffmpeg-fix
      remotes/origin/123.08beta03-libresslclang
      remotes/origin/123.08beta03-rtmp
      remotes/origin/123.08beta03clang
      remotes/origin/123.08beta03curl743
      remotes/origin/123.08beta03libressl
      remotes/origin/123.08beta03redis
      remotes/origin/123.08centos7beta01
      remotes/origin/123.08centos7beta02
      remotes/origin/123.08stable
      remotes/origin/123.08stable-nginxhttp2
      remotes/origin/123.08zerodown
      remotes/origin/123.09beta01
      remotes/origin/123.09beta01le
      remotes/origin/HEAD -> origin/master
      remotes/origin/master
    [root@host centminmod]# git log -1
    commit 2a9d2bf12f0c5a689604cbe51b5ca8d4de560064
    Author: George Liu <EMAIL>
    Date:   Fri Dec 4 14:48:19 2015 +1000
    
        update inc/php_upgrade.inc
      
        comment out /etc/centminmod/php.d/redis.ini removal line
    [root@host centminmod]# 
     
    • Like Like x 1
  13. Matt

    Matt Moderator Staff Member

    694
    320
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +447
    Local Time:
    1:41 AM
    1.7.1
    MariaDB 10
    Tried again
    Code:
    [root@host centminmod]# php -v
    PHP 7.1.0-dev (cli) (built: Dec  4 2015 05:45:44) ( NTS )
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v3.1.0-dev, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
    [root@host centminmod]# 
     
  14. Matt

    Matt Moderator Staff Member

    694
    320
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +447
    Local Time:
    1:41 AM
    1.7.1
    MariaDB 10
    Oh, hang on. When I first tried PHP7, I installed 7.0 rather than the RC version, and it's downloaded 7.1. I've just looked in the scr-setup directory, and it's downloaded the 7.1 tar as 7.0
    Code:
    -rw-r--r--  1 root  root  194094760 Nov  9 11:00 php-7.0.0.tar.gz
    Maybe add a check in to force a delete of 7.0.0 if it's older than when the script it run?
     
    • Informative Informative x 1
  15. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks like PHP 7.0.0 to me not 7.1
    Code:
    *************************************************
    [1;32;40m* Upgrading PHP
    [0;10m*************************************************
    [1;32;40mphp 7.0.0 Archive found, skipping download...
    [0;10mphp-7.0.0/
    looks like igbinary-php7 branch failed which is normal that is why at end of upgrade, you remove the igbinary.ini file but you redis install part uses the normal branch and not redis-php7 directory

    ah ha that makes sense, prior 7.0.0 version specified php 7 dev master branch at github and named it php-7.0.0.tar.gz !
     
    • Like Like x 1
  16. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    Do I put in 7.0 OR 7.0.0 for the upgraded version? I've been using 7.0.0
     
  17. Matt

    Matt Moderator Staff Member

    694
    320
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +447
    Local Time:
    1:41 AM
    1.7.1
    MariaDB 10
    All sorted
    Code:
    [root@host centminmod]# php -v
    PHP 7.0.0 (cli) (built: Dec  4 2015 05:52:10) ( 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
     
    • Like Like x 1
  18. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    7.0.0

    the reference to 7.0 is to update inc/phpng_download.inc · centminmod/centminmod@3bd0555 · GitHub and how I use $PHPMUVER variable which evaluates 7.0.0 as 7.0 or 5.6.16 as 5.6 for detection purposes.

    @Matt had used 7.0.0 before my recent switch changes from php 7 git dev master to php.net tarball downloads. So php 7 git dev master is working off PHP 7.1.0 right now. Technically, if you specified PHP 7.1.0 at upgrade, you will get php 7 git dev master now too heh - but i need to clean up that renaming of php-7.0.0.tar.gz heh oh don't need to as specified 7.1.0 will name the git dev php 7 branch download as php-7.1.0.tar.gz so no conflicts !

    (y)

    enjoy :D
     
    • Like Like x 1
  19. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    8:41 PM
    latest
    10
    ok, I don't know what I am doing wrong here. Here are my steps:
    1. Menu option 23 w/ sub menu 1 and choose beta01
    2. cd to home and run:
    Then:

    Wrong or right? Am I missing anything?
     
  20. eva2000

    eva2000 Administrator Staff Member

    30,632
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    11:41 AM
    Nginx 1.13.x
    MariaDB 5.5
    looks right to me .. try it and like @Matt afterwards grab the /root/centminlogs/ php upgrade log and throw it up on pastebin/gist
     
    • Like Like x 1