Get the most out of your Centmin Mod LEMP stack
Become a Member

upgrade php from 7.2 to 7.3 problem still CLI show 7.2

Discussion in 'Install & Upgrades or Pre-Install Questions' started by adamus007p, Oct 21, 2019.

  1. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    • CentOS Version: CentOS Linux release 7.7.1908 (Core)
      Centmin Mod Version Installed: 123.09beta01.b290
    • Nginx Version Installed:
      nginx version: nginx/1.17.
      PHP Version Installed: 7.??
    Hello I have upgraded my VPS, nginx and then php.

    I used to have a php 7.2 so I have upgraded it to php 7.3.10
    but when i enter php -v it show me

    Code (Text):
    php -v
    PHP 7.2.14 (cli) (built: Feb  5 2019 15:29:20) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    You have new mail in /var/spool/mail/root
    


    @eva2000 is it normal? Any other more experienced then me colleagues?

    upgrade was ok, then i run nprestart

    how to switch to 7.3 ?


    PS. At this step i have choose n

    Code (Text):
    Detected PHP 7.3 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] ? n



    I was reinstalling php two time, the same effect.

    Any help?
     
    Last edited: Oct 21, 2019
  2. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
  4. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    Code (Text):
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    SET_DEFAULT_MYSQLCHARSET='utf8mb4'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    PHP_PGO='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'
    AUDITD_ENABLE='y'
     
  5. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    off top when I wanted to past log BBcode
    java error
    The following error occurred
    The server responded with an error. The error message is in the JavaScript console.

    i had error
    java error
     
  6. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    I wanted to copy and pase in Firefox or in Chrome and the same error
    error bbcode

    i think this might be related to my Bitdefender Total Security.
     
  7. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    I am sorry for many separate messages but I wanted to check this error.
    when i copy from this link it is reproductive
    error bbcode

    only with using BBcode.
     
  8. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    same cpu related error causing PHP 7.3.10 to fail upgrade hence 7.2 reported
    Code (Text):
    Generating phar.php
    /bin/sh: line 1:  8038 Illegal instruction     ` if test -x "/svr-setup/php-7.3.10/fpm-build/sapi/cli/php"; then /svr-setup/php-7.3.10/build/shtool echo -n -- "/svr-setup/php-7.3.10/fpm-build/sapi/cli/php -n"; if test "x" != "x"; then /svr-setup/php-7.3.10/build/shtool echo -n -- " -d extension_dir=/svr-setup/php-7.3.10/fpm-build/modules"; for i in bz2 zlib phar; do if test -f "/svr-setup/php-7.3.10/fpm-build/modules/$i.la"; then . /svr-setup/php-7.3.10/fpm-build/modules/$i.la; /svr-setup/php-7.3.10/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /svr-setup/php-7.3.10/build/shtool echo -n -- "/svr-setup/php-7.3.10/fpm-build/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /svr-setup/php-7.3.10/ext/phar/build_precommand.php > ext/phar/phar.php
    make[1]: *** [ext/phar/phar.php] Error 132
    make[1]: *** Waiting for unfinished jobs....
    make[1]: Leaving directory `/svr-setup/php-7.3.10/fpm-build'
    make: *** [prof-use] Error 2
    
     
  9. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    how to fix it?
     
  10. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    same problem as @babyshark at Install - Fresh Install Centminmod, can't run php you cpu isn't properly setup to support PHP 7.3's AVX instructions requirement so only way is either change cpus or get web host to properly configure/pass AVX instructions to your VPS server or downgrade to PHP 7.2

    you can verify if your cpu has AVX and AVX2 instructions via cpu flags reported from command - according to Intel ARK database your cpu supports AVX so avx flag should show from lscpu output
    Code (Text):
    lscpu
     
  11. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    Code (Text):
    lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                2
    On-line CPU(s) list:   0,1
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             2
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 62
    Model name:            Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
    Stepping:              4
    CPU MHz:               2799.923
    BogoMIPS:              5599.84
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              4096K
    NUMA node0 CPU(s):     0,1
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat 
    
    pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl eagerfpu 
    
    pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm xsaveopt xsavec
    


    it seems that there is no flags.


    There is not other possibility to install it?
     
    Last edited: Oct 23, 2019
  12. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    wow never seen an Intel E5-2680v2 Ivybridge cpu with so many cpu instruction flags missing ! Problem is your web hosts' VPS servers configuration not properly passing cpu flag/instructions from VPS host node to your VPS guest server. You need for web host to fix this or move to a better web host.

    Edit: FYI you don't even have aes flag for AES-NI hardware accelerated encryption so performance would be pretty bad on top of not having avx flag for AVX cpu instruction support
     
  13. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    @eva2000 any recommendation for US west cost company or center? at the moment i have 2cpu and 4gb ram. for 5-6USD/month

    I think that 1cpu and 2gb ram would me minimum for my 2 shops
     
  14. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    from Centmin Mod LEMP Stack Install Nginx on CentOS
    though no where cheap as $5-6/month as you have found out there's performance costs for such cheap VPSes i.e. improperly configured servers without AES-NI and AVX support = very poor relative performance compared to properly configured VPS servers.
     
  15. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    @eva2000 shall I install this
    Code (Text):
     Do you want to use Zend OPcache [y/n] ? y

    when I use Wordpress?

    Code (Text):
    Detected PHP 7.3 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
     
  16. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    always answer yes to install zend opcache for better performance in PHP
     
    • Like Like x 1
  17. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    Hello @eva2000 i want to continue topic.

    I was trying to update this php to newsest php 7.2, but the update did not works.

    and during update there is weird info about waring.

    This is the same server where i could not install php 7.3 as there is no CPU flags.
    Now I see that there is a problem with an update 7.2 too.

    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 7.4.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: Warning:
    
    Enter PHP Version number you want to upgrade/downgrade to:
    



    Current PHP Version: Warning: and nothing here. Why?
     
  18. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM
    php 7.2 upgrade full log:
    php 7.2 update error full log

    php 7.2 upgrade full minimal log:
    php 7.2 update error minimal log


    with this update it was weird
    Current PHP Version: Warning:
    and no info about php

    Code (Text):
    cat /etc/centminmod/custom_config.inc
    NGINX_SSLCACHE_ALLOWOVERRIDE='y'
    SET_DEFAULT_MYSQLCHARSET='utf8mb4'
    AUTOHARDTUNE_NGINXBACKLOG='y'
    ZSTD_LOGROTATE_NGINX='y'
    ZSTD_LOGROTATE_PHPFPM='y'
    NGINX_LIBBROTLI='y'
    NGXDYNAMIC_BROTLI='y'
    PHP_PGO='y'
    PHP_BROTLI='y'
    PHP_LZFOUR='y'
    PHP_LZF='y'
    PHP_ZSTD='y'
    LETSENCRYPT_DETECT='y'
    DUALCERTS='y'
    AUDITD_ENABLE='y'
    



    there is redis warning also which I posed above.
    PHP Warning: Cannot load module 'redis' because required module 'igbinary' is not loaded in Unknown on line 0

    I don't use redis.

    Code (Text):
    php -v
    PHP Warning:  Cannot load module 'redis' because required module 'igbinary' is not loaded in Unknown on line 0
    PHP 7.2.14 (cli) (built: Feb  5 2019 15:29:20) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
        with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies
    
     
    Last edited: Oct 29, 2019
  19. eva2000

    eva2000 Administrator Staff Member

    42,078
    9,497
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,613
    Local Time:
    5:46 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    run centmin.sh menu option 13 submenu option 2 to recompile redis and igbinary

    then run centmin.sh menu option 5 to recompile PHP 7.2 version i.e. 7.2.24

    but your php upgrade log still shows illegal instructions errors - I wouldn't waste time on this server, it's clearly not configured correctly and optimally for the cpu processor. Try a different web host/server :)
     
  20. adamus007p

    adamus007p Premium Member Premium Member

    104
    5
    18
    Feb 8, 2019
    Ratings:
    +6
    Local Time:
    8:46 PM