Join the community today
Become a Member

PHP PHP 7.0.3 is available

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Feb 4, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Continue reading...

     
    Last edited: Feb 5, 2016
  2. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    11:16 AM
    Mainline
    10.2
    I will update mine later in the morning :).
     
  3. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:16 AM
    1.9.12
    10.0.23
    Did not went well here:

    Code:
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    
    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.31, 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.3
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_040216-151355
    ----------------------------------------------------------------
    
    -----------------------------------------------------------------------------------------
    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
    
    
    Creating htpasswd_opcache user/pass...
    /usr/local/nginx/conf/htpasswd.sh create /usr/local/nginx/conf/htpasswd_opcache opadmin xxx
    
    /usr/local/nginx/conf/htpasswd_opcache contents:
    opadmin:xxx
    
    Insert Username/Password into /usr/local/nginx/html/547fbb36_opcache.php file itself
    
    Create include file /usr/local/nginx/conf/include_opcache.conf
    
                location ~ ^/(547fbb36_opcache.php) {
        include /usr/local/nginx/conf/php.conf;
            auth_basic "Password Protected";
            auth_basic_user_file /usr/local/nginx/conf/htpasswd_opcache;
                }
    
    Setup virtual.conf
    Adding /usr/local/nginx/conf/include_opcache.conf include entry
    
    service nginx reload
    Reloading nginx configuration (via systemctl):  [  OK  ]
    *************************************************
    * Zend Optimizer Plus OPcache installed
    *************************************************
    *************************************************
    * Upgrading PHP
    *************************************************
    FR server detected
    Initializing download: http://fr2.php.net/get/php-7.0.3.tar.xz/from/this/mirror
    HTTP/1.0 404 Not Found
    tar (child): php-7.0.3.tar.xz: Cannot open: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now
    inc/php_upgrade.inc: line 295: cd: php-7.0.3: No such file or directory
    
    *************************************************
    * Updating php.ini...
    *************************************************
    old php.ini will be saved at /usr/local/lib/php.ini-oldversion_040216-151355
    if you have modified your old php.ini i.e. installed and loaded
    APC, Xcache, Memcache or Suhosin - please re-install them after php upgrade
    ...
    cp: cannot stat ‘php.ini-production’: No such file or directory
    
    make: *** No rule to make target `clean'.  Stop.
    inc/php_upgrade.inc: line 338: ./buildconf: No such file or directory
    make: *** No rule to make target `clean'.  Stop.
      -m64                                  [enabled]
      -m80387                               [enabled]
      -m96bit-long-double                   [enabled]
      -maes                                 [enabled]
      -malign-stringops                     [enabled]
      -march=                               corei7-avx
      -mavx                                 [enabled]
      -mcx16                                [enabled]
      -mfancy-math-387                      [enabled]
      -mfentry                              [enabled]
      -mfp-ret-in-387                       [enabled]
      -mfpmath=                             387
      -mfxsr                                [enabled]
      -mglibc                               [enabled]
      -mhard-float                          [enabled]
      -mieee-fp                             [enabled]
      -mlong-double-80                      [enabled]
      -mpclmul                              [enabled]
      -mpopcnt                              [enabled]
      -mpush-args                           [enabled]
      -mred-zone                            [enabled]
      -msahf                                [enabled]
      -msse                                 [enabled]
      -msse2                                [enabled]
      -msse3                                [enabled]
      -msse4                                [enabled]
      -msse4.1                              [enabled]
      -msse4.2                              [enabled]
      -mssse3                               [enabled]
      -mstackrealign                        [enabled]
      -mtls-direct-seg-refs                 [enabled]
      -mtune=                               corei7-avx
      -mxsave                               [enabled]
      -mxsaveopt                            [enabled]
      Valid arguments to -mfpmath=:
    ../configure --enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --with-mhash --with-zlib --with-gettext --enable-exif --enable-zip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --with-gd --with-xmlrpc --enable-bcmath --enable-calendar  --enable-ftp --enable-gd-native-ttf --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-vpx-dir=/usr --with-t1lib=/usr --enable-pdo --with-pdo-sqlite --with-pdo-mysql=mysqlnd --enable-inline-optimization --with-imap --with-imap-ssl --with-kerberos --with-readline --with-libedit --with-gmp --with-pspell --with-tidy --with-enchant --with-fpm-user=nginx --with-fpm-group=nginx --disable-fileinfo --with-config-file-scan-dir=/etc/centminmod/php.d --with-xsl
    inc/php_configure.inc: line 315: ../configure: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.001s
    sys     0m0.001s
    make: *** No rule to make target `install'.  Stop.
    
    real    0m0.002s
    user    0m0.002s
    sys     0m0.001s
    
    strip PHP binary...
    -rwxr-xr-x. 1 root root 9.8M Jan 22 02:31 /usr/local/bin/php
    -rwxr-xr-x. 1 root root 9.8M Jan 22 02:31 /usr/local/bin/php-cgi
    -rwxr-xr-x 1 root root 9.8M Feb  4 15:14 /usr/local/bin/php
    -rwxr-xr-x 1 root root 9.8M Feb  4 15:14 /usr/local/bin/php-cgi
    
    
    Thu Feb  4 15:14:28 CET 2016
    Success: PHP configure ok
    
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    make -j3
    make: *** No targets specified and no makefile found.  Stop.
    
    real    0m0.002s
    user    0m0.002s
    sys     0m0.000s
    
    Thu Feb  4 15:14:29 CET 2016
    Error: 2, PHP make failed (1.2.3-eva2000.09.001)
    
    Total PHP Upgrade Time: 27.289709314 seconds
    
    Like it could not fetch from here: http://fr2.php.net/get/php-7.0.3.tar.xz/from/this/mirror
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @ModeltogTossen you using 123.09beta01 right ? That added php download mirror geo server location mapping support Beta Branch - update inc/downloads.inc & centmin.sh php geo locale support | Centmin Mod Community so looks like your mirror doesn't have the 7.0.3 download available yet. I implemented a fallback for libressl which had such a geo server location mapping added to 123.09beta01 as well Beta Branch - Implement geo location mapping for LibreSSL downloads | Centmin Mod Community But for PHP it's harder to fall back as it has the real download url masked so hard to check for it's existence prior to download right now.
     
  5. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Actually i can probably just check for 404 status code instead of the url when checking PHP mirrors for fallback support in 123.09beta01

    french mirror vs USA mirror = 404 vs 200 status codes
    Code:
    curl -I http://fr2.php.net/get/php-7.0.3.tar.xz/from/this/mirror
    HTTP/1.1 404 Not Found
    Date: Thu, 04 Feb 2016 14:30:32 GMT
    Server: Apache/2.2.22 (Ubuntu)
    X-Powered-By: PHP/5.3.10-1ubuntu3.1
    Content-language: en
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: COUNTRY=NA%2C104.152.214.225; expires=Thu, 11-Feb-2016 14:30:32 GMT; path=/; domain=.php.net
    Status: 404 Not Found
    Cache-Control: private
    Pragma: no-cache
    Vary: Accept-Encoding
    Content-Type: text/html; charset=utf-8
    
    Code:
    curl -I http://php.net/get/php-7.0.3.tar.xz/from/this/mirror   
    HTTP/1.1 302 Found
    Server: nginx/1.6.2
    Date: Thu, 04 Feb 2016 14:30:39 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    X-Powered-By: PHP/5.6.17-0+deb8u1
    Content-language: en
    X-Frame-Options: SAMEORIGIN
    Set-Cookie: COUNTRY=NA%2C104.152.214.225; expires=Thu, 11-Feb-2016 14:30:39 GMT; Max-Age=604800; path=/; domain=.php.net
    X-PHP-Load: 3.13, 3.62, 3.8
    Status: 302 Found
    Location: http://php.net/distributions/php-7.0.3.tar.xz
     
  6. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:16 AM
    1.9.12
    10.0.23
    Thats right - using that live .. No big deal - I just wait to see if that source comes online later.. Yeah, some fallback solution, also for php, if possible could be very nice.. (Nice to have, not need to have ;-) )
     
  7. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    updated 123.09beta01 with php geo location fallback support so you can update 123.09beta01 and give it a try add php geo location mirror mapping fallback · centminmod/centminmod@3fb998d · GitHub :)
     
  8. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:16 AM
    1.9.12
    10.0.23
    Nice ..

    Code:
    FR server detected
    HTTP/1.1 404 Not Found
    Initializing download: http://php.net/get/php-7.0.3.tar.xz/from/this/mirror
    File size: 11398500 bytes
    Opening output file php-7.0.3.tar.xz
    Starting download
    
    Connection 1 finished                                                          ]
    Connection 2 finished                                                          ]
    Connection 3 finished                                                          ]
    Connection 0 finished                                                          ]
    
    Downloaded 10.9 Megabyte in 2 seconds.
    
    And now server is compiling php stuff - 7.0.3 ..
     
  9. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks for confirmation @ModeltogTossen

    Updated as well for my Wordpress7 site at wordpress7.centminmod.com
    Code:
    php -v
    PHP 7.0.3 (cli) (built: Feb  4 2016 14:52:23) ( 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
    php extension modules loaded
    Code:
    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
    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
     
  10. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:16 AM
    1.9.12
    10.0.23
    Code:
    PHP 7.0.3 (cli) (built: Feb  4 2016 15:55:05) ( 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
    
    Total PHP Upgrade Time: 428.480479675 seconds

    Modules
    Code:
    [root@sarah ~]# 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
    ssh2
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
  11. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Looks good kind of slow on PHP upgrade time but that really depends on speed of your server's processor and number of cpu threads it has to work with :)

    I forgot to check my PHP upgrade time, but each centmin.sh menu option has a log at /root/centminlogs with such details.

    Finding my log for php_upgrade with list command in ascending date order so latest is at bottom (so tail for last line)
    Code:
     ls -lahrt /root/centminlogs/ | grep php_upgrade | tail -1
    -rw-r--r--   1 root root  1.3M Feb  4 14:54 centminmod_1.2.3-eva2000.09.001_040216-144305_php_upgrade.log
    Grep for Total PHP Upgrade Time line = 656 seconds on 2 cpu DigitalOcean 2GB VPS
    Code:
    grep 'Total PHP Upgrade' /root/centminlogs/centminmod_1.2.3-eva2000.09.001_040216-144305_php_upgrade.log
    Total PHP Upgrade Time: 656.472247076 seconds
    Would love to see how fast it would be on upcoming Intel Xeon E5-2602v4 Broadwell-EP processors with 4 cores/8 threads clocked at 5.1Ghz Intel Xeon E5-2602v4 5.1Ghz Broadwell-EP processor ! | Centmin Mod Community :D
     
  12. ModeltogTossen

    ModeltogTossen I wish I could??

    313
    97
    28
    Dec 20, 2015
    Denmark
    Ratings:
    +143
    Local Time:
    5:16 AM
    1.9.12
    10.0.23
    Yeah - Its a 'older' Ovh server without ssd, with vmware. On that I have this CMM 09Beta1 vmguest with 8 GB ram 2 vcpu, 2 x 300 GB. The host it self is:

    OS: VMWare ESXi 5.5
    Architecture: 64bit
    Bandwidth: 1Gbps
    IP: 5
    HDD: 2x 3TB NO RAID (configured in Raid 1 after)
    RAM: 32GB
    CPU: Intel Xeon E5-1650 3.2Ghz + ILO
    Country: Paris - FR

    Besides CMM I also have 7 other vms..
     
    Last edited: Feb 5, 2016
  13. rdan

    rdan Well-Known Member

    5,449
    1,410
    113
    May 25, 2014
    Ratings:
    +2,204
    Local Time:
    11:16 AM
    Mainline
    10.2
     
  14. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    6:16 AM
    1.9.10
    10.1.11
    In my first upgrade try, it gives same error as above. Upgrade was broken.

    Then i delete the svr-setup/php-7.0.3 folder and files and restart upgrade process, it was successfully.
     
  15. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    5:16 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Upgraded few days ago...

    Code:
    [root@tvor-ocean ~]# php -v
    PHP 7.0.3 (cli) (built: Feb  6 2016 20:48:09) ( 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
    [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
    mailparse
    mbstring
    mcrypt
    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
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
    [root@tvor-ocean ~]# php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.5
     
  16. Tracy Perry

    Tracy Perry Active Member

    280
    118
    43
    Aug 24, 2014
    Texas
    Ratings:
    +210
    Local Time:
    10:16 PM
    1.21.6
    MariaDB 10.3.36
    Running on a OVH box using their custom kernel (reason due to the ETH hardware not supported by stock CentOS kernel)
    Upgraded to latest version of CentMin Beta and when processing for a CentOS upgrade (and checking YUM dependencies) noticed this

    Code:
    No packages marked for update
    cp: cannot stat ‘/var/cache/yum/timedhosts.txt’: No such file or directory
    -rw-r--r-- 1 root root 30K Feb 29 16:06 /root/centminlogs/centminmod_yumtimes_290216-160348.log
    and this (probably because I have a process that runs automated to pull in the latest from MaxMind), which is not an error I realize but a notice more than anything
    Code:
    2016-02-29 16:05:51 URL:http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz [12319715/12319715] -> "/usr/share/GeoIP/GeoLiteCity.dat.gz" [1]
    cp: ‘/usr/share/GeoIP/GeoLiteCity.dat’ and ‘/usr/share/GeoIP/GeoIPCity.dat’ are the same file
    
     
  17. eva2000

    eva2000 Administrator Staff Member

    55,189
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    1:16 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    can ignore that it's just cosmetic
    yeah can also be ignored :)
     
  18. Revenge

    Revenge Active Member

    469
    93
    28
    Feb 21, 2016
    Portugal
    Ratings:
    +354
    Local Time:
    4:16 AM
    1.9.x
    10.1.x
    PHP 7.0.4 is out.