Join the community today
Become a Member

Beta Branch php 8.0.0beta1 download update in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Aug 7, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    php 8.0.0beta1 download update in 123.09beta01


    - update php 8.0.0beta1 download urls PHP: News Archive - 2020 which allow you to specify on centmin.sh menu option 5 PHP upgrade menu the PHP version = 8.0.0beta1 for testing PHP 8.0.0beta1 and subsequent betas
    - not to be used on production live systems as not all PHP extensions may be supported right now so use on test servers only

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Ensure you run cmupdate command to update to latest 123.09beta01 or higher first then run centmin.sh menu option 5 with PHP version specified = 8.0.0beta1

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    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 MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    

    Code (Text):
    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/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.40, 7.0.33, NGDEBUG)
    PHP 7.x/7.1.x/7.2.x/7.3.x is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 8.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: 7.4.9
    
    Enter PHP Version number you want to upgrade/downgrade to: 8.0.0beta1
    
    Do you still want to continue? [y/n] y
    
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_060820-172131
    ----------------------------------------------------------------
    HTTP/1.1 200 OK
    Downloading PHP 8.0.0beta1 from https://downloads.php.net/~carusogabriel/
    Download php-8.0.0beta1.tar.xz ...
    wget -4cnv https://downloads.php.net/~carusogabriel/php-8.0.0beta1.tar.xz --tries=3
    2020-08-06 17:22:24 URL:https://downloads.php.net/~carusogabriel/php-8.0.0beta1.tar.xz [10534960/10534960] -> "php-8.0.0beta1.tar.xz" [1]
    Download done.
    php-8.0.0beta1.tar.xz valid file.
    

    Code (Text):
    -----------------------------------------------------------------------------------------
    Detected PHP 8.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 your 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
    
    grep: /etc/centminmod/php.d/zendopcache.ini: No such file or directory
    
    
    
    Copying zendopcache.ini > /etc/centminmod/php.d/zendopcache.ini
    
    *************************************************
    * Zend Optimizer Plus OPcache configured
    *************************************************
    
    PHP 7+ detected which uses newer mysqlnd
    or PDO MySQL extensions and removed the
    legacy mysql extension. You can optionally
    re-add the removed legacy mysql extension
    to PHP 7+ by answering yes to next question
    Only answer yes if you know for sure you
    have very old web scripts which need mysql
    legacy extension re-added. Otherwise answer
    no which is recommended for best stability
    
    Re-add legacy mysql extension to PHP 7+ [y/n] ? n
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Known PHP 8 incompatible PHP extensions include, mcrypt, geoip and imagick and seems now memcache

    end of PHP upgrade routine in centmin.sh menu option 5 will try to let you know which PHP extensions need removing and the instructions - this is for 3 of 4 php extensions, looks like memcache should of been one of them too
    Code (Text):
    ***************************************************
    PHP 7.0/7.1/7.2/7.3/7.4/8.0 detected.. remove unsupported PHP extensions manually
    by removing their ini files listed below (if list is empty = nothing to do):
    ***************************************************
    
    PHP 8.0 detected removing incompatible /etc/centminmod/php.d/mcrypt.ini
    rm -f /etc/centminmod/php.d/mcrypt.ini
    
    PHP 8.0 detected removing incompatible /etc/centminmod/php.d/geoip.ini
    rm -f /etc/centminmod/php.d/geoip.ini
    
    PHP 8.0 detected removing incompatible /etc/centminmod/php.d/imagick.ini
    rm -f /etc/centminmod/php.d/imagick.ini
    
    then restart PHP-FPM again...
    

    Code (Text):
    Usage: /usr/local/bin/php-config [OPTION]
    Options:
      --prefix            [/usr/local]
      --includes          [-I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib]
      --ldflags           [ -L/usr/local/lib64]
      --libs              [-lcrypt  -lc-client  -ltidy -largon2 -lresolv -lncurses -laspell -lpspell -lrt -lldap -llber -lstdc++ -lcrypt -lpam -lgmp -lbz2 -lutil -lrt -lm -ldl  -lsystemd -lxml2 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -lwebp -ljpeg -lXpm -lX11 -lfreetype -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -ledit -ltinfo -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -largon2 -lxml2 -lxml2 -lxml2 -lxslt -lxml2 -lexslt -lxslt -lxml2 -lzip -lz -lssl -lcrypto -lcrypt ]
      --extension-dir     [/usr/local/lib/php/extensions/no-debug-non-zts-20200804]
      --include-dir       [/usr/local/include/php]
      --man-dir           [/usr/local/php/man]
      --php-binary        [/usr/local/bin/php]
      --php-sapis         [ cli embed fpm phpdbg cgi]
      --ini-path          [/usr/local/lib]
      --ini-dir           [/etc/centminmod/php.d]
      --configure-options [--enable-fpm --enable-opcache --enable-intl --enable-pcntl --with-mcrypt --with-snmp --enable-embed=shared --with-mhash --with-zlib --with-gettext --enable-exif --with-zip --with-libzip --with-bz2 --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-mysql-sock=/var/lib/mysql/mysql.sock --with-curl --enable-gd --with-xmlrpc --enable-bcmath --enable-calendar --enable-ftp --enable-gd-native-ttf --with-freetype --with-jpeg --with-png-dir=/usr --with-xpm --with-webp --with-t1lib=/usr --enable-shmop --with-pear --enable-mbstring --with-openssl --with-mysql=mysqlnd --with-libdir=lib64 --with-mysqli=mysqlnd --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 --with-ldap --with-ldap-sasl --with-password-argon2=/usr/local --with-sodium=/usr/local --with-config-file-scan-dir=/etc/centminmod/php.d --with-fpm-systemd --with-ffi --with-xsl PKG_CONFIG_PATH=/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig:/opt/rh/devtoolset-9/root/usr/lib64/pkgconfig ICU_CFLAGS=-I/usr/include ICU_LIBS=-L/usr/lib64 -licuio -licui18n -licuuc -licudata LIBSODIUM_CFLAGS=-I/usr/local/include LIBSODIUM_LIBS=-L/usr/local/lib64 -lsodium LIBZIP_CFLAGS=-I/usr/local/include LIBZIP_LIBS=-L/usr/local/lib64 -lzip]
      --version           [8.0.0beta1]
      --vernum            [80000]
    ***************************************************
    * PHP compiled with CPU_MARCH=haswell
    * PHP upgraded and auto reinstalled PHP extensions
    ***************************************************
    

    remove unsupported PHP extension .ini settings files
    Code (Text):
    rm -f /etc/centminmod/php.d/mcrypt.ini
    rm -f /etc/centminmod/php.d/geoip.ini
    rm -f /etc/centminmod/php.d/imagick.ini
    rm -f /etc/centminmod/php.d/memcache.ini
    fpmrestart
    

    Code (Text):
    php -v
    PHP 8.0.0beta1 (cli) (built: Aug  6 2020 17:26:51) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
        with Zend OPcache v8.0.0beta1, Copyright (c), by Zend Technologies
    

    Code (Text):
    php -r 'print_r(get_defined_constants());' | grep -i argon
        [PASSWORD_ARGON2I] => argon2i
        [PASSWORD_ARGON2ID] => argon2id
        [PASSWORD_ARGON2_DEFAULT_MEMORY_COST] => 65536
        [PASSWORD_ARGON2_DEFAULT_TIME_COST] => 4
        [PASSWORD_ARGON2_DEFAULT_THREADS] => 1
        [PASSWORD_ARGON2_PROVIDER] => standard
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13] => 1
        [SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13] => 2
        [SODIUM_CRYPTO_PWHASH_STRPREFIX] => $argon2id$
    

    Code (Text):
    php -m
    [PHP Modules]
    bcmath
    bz2
    calendar
    Core
    ctype
    curl
    date
    dom
    enchant
    exif
    FFI
    fileinfo
    filter
    ftp
    gd
    gettext
    gmp
    hash
    iconv
    imap
    intl
    json
    ldap
    libxml
    mailparse
    maxminddb
    mbstring
    memcached
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    pdo_sqlite
    Phar
    posix
    pspell
    readline
    Reflection
    session
    shmop
    SimpleXML
    snmp
    soap
    sockets
    sodium
    SPL
    sqlite3
    standard
    sysvmsg
    sysvsem
    sysvshm
    tidy
    timezonedb
    tokenizer
    xml
    xmlreader
    xmlwriter
    xsl
    Zend OPcache
    zip
    zlib
    
    [Zend Modules]
    Zend OPcache
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    PHP 8.0.0beta3 has been released so centmin.sh menu option 5 upgrade prompt enter version = 8.0.0beta3 to take PHP 8.0 beta3 for a test drive :)

    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com     
    --------------------------------------------------------
    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 MySQL Upgrade & Management
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    

    Code (Text):
    PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.40, 7.0.33, NGDEBUG)
    PHP 7.x/7.1.x/7.2.x/7.3.x is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 8.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    Current PHP Version: 7.4.9
    Enter PHP Version number you want to upgrade/downgrade to: 8.0.0beta3
    
    Do you still want to continue? [y/n] y
    
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_010920-200008
    ----------------------------------------------------------------
    HTTP/1.1 200 OK
    Downloading PHP 8.0.0beta3 from https://downloads.php.net/~carusogabriel/
    Download php-8.0.0beta3.tar.xz ...
    wget -4cnv https://downloads.php.net/~carusogabriel/php-8.0.0beta3.tar.xz --tries=3
    2020-09-01 20:04:01 URL:https://downloads.php.net/~carusogabriel/php-8.0.0beta3.tar.xz [10642888/10642888] -> "php-8.0.0beta3.tar.xz" [1]
    Download done.
    php-8.0.0beta3.tar.xz valid file.
    

    Code (Text):
    -----------------------------------------------------------------------------------------
    Detected PHP 8.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 your 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 (Text):
    php -v
    PHP 8.0.0beta3 (cli) (built: Sep  1 2020 20:07:51) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
       with Zend OPcache v8.0.0beta3, Copyright (c), by Zend Technologies
    

    quick hello word benchmark with wrk-cmm = 28096.05 requests/sec which is ~10.7% faster than PHP 7.4.9
    Code (Text):
    wrk-cmm -t1 -c500 -d15s --latency --breakout http://localhost/hello.php
    Running 15s test @ http://localhost/hello.php
      1 threads and 500 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency    17.75ms    1.19ms  34.28ms   92.04%
       Connect     9.67ms    5.83ms  17.56ms   53.20%
       TTFB       17.74ms    1.19ms  34.27ms   92.04%
       TTLB        2.58us    1.02us  70.00us   96.92%
       Req/Sec    28.27k     1.16k   29.66k    84.67%
      Latency Distribution
        50%   17.46ms
        75%   17.81ms
        90%   18.52ms
        95%   19.68ms
        99%   23.08ms
      421931 requests in 15.02s, 133.99MB read
    Requests/sec:  28096.05
    Transfer/sec:      8.92MB
    

    compared to PHP 7.4.9 = 25371.99 requests/sec
    Code (Text):
    php -v
    PHP 7.4.9 (cli) (built: Sep  1 2020 00:18:53) ( NTS )
    Copyright (c) The PHP Group
    Zend Engine v3.4.0, Copyright (c) Zend Technologies
       with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies
    

    Code (Text):
       
    wrk-cmm -t1 -c500 -d15s --latency --breakout http://localhost/hello.php               
    Running 15s test @ http://localhost/hello.php
      1 threads and 500 connections
      Thread Stats   Avg      Stdev     Max   +/- Stdev
       Latency    19.66ms    1.68ms  46.94ms   93.96%
       Connect     9.50ms    5.75ms  17.38ms   53.20%
       TTFB       19.65ms    1.68ms  46.93ms   93.96%
       TTLB        2.69us    1.04us  46.00us   95.69%
       Req/Sec    25.53k     1.37k   26.40k    89.33%
      Latency Distribution
        50%   19.29ms
        75%   19.63ms
        90%   20.31ms
        95%   21.84ms
        99%   27.72ms
      381019 requests in 15.02s, 121.00MB read
    Requests/sec:  25371.99
    Transfer/sec:      8.06MB
    
     
  5. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:38 PM
    Mainline
    10.2
    8.0.0RC3 is also supported?
     
  6. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:38 PM
    Mainline
    10.2
    I guess it work :)

     
  7. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah all PHP 8.0.0RC* version numbers will work to pull from RC download location in Centmin Mod 123.09beta01 :)

    8.0.0 GA final release won't right now as I would need to update 123.09beta01 to switch 8.0.0 from beta/rc download location to GA release location.
     
  8. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    5:38 PM
    Mainline
    10.2
  9. eva2000

    eva2000 Administrator Staff Member

    54,918
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    7:38 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+