Want to subscribe to topics you're interested in?
Become a Member

PHP-FPM php update problem

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by hitman, Nov 22, 2016.

  1. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    8:29 AM
    hello
    i am facing this issue in one server when i try to update php from option 5
    Code:
    PHPMUVER = 5.6
    PHP_PGO = n
    make -j3
    Generating phar.phar
    make: *** [ext/phar/phar.phar] Illegal instruction
    
    real    0m0.337s
    user    0m0.146s
    sys    0m0.221s
    
    Mon Nov 21 22:22:18 UTC 2016
    Error: 2, PHP make failed (1.2.3-eva2000.09.001)
    any ideas?

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    To troubleshoot, you need to check the the php upgrade logs at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade and php_upgrade logs. You can see full details at How to troubleshoot Centmin Mod initial install issues

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade or php in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    

    Code (Text):
    ls -lahrt /root/centminlogs/ | egrep 'nginx_upgrade|php_upgrade'
    -rw-r--r--  1 root root  2.6M Oct  3 03:48 centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log
    -rw-r--r--  1 root root  664K Oct 12 09:24 centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log and located at /root/centminlogs/ccentminmod_1.2.3-eva2000.09.001_121016-092406_nginx_upgrade.log
    then use cat command to output the contents of that log. Do the same for php_upgrade.log log.

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_031016-034409_php_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share

    so only need content of 1 specific logs, in this case most recent php_upgrade.log logs
     
  3. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    8:29 AM
    this is the php_update log file
    i tried to update several times without luck
    i also tried to update imagick extension through option 15 in case it resolves this but its all the same

    asd ยท GitHub
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. hitman

    hitman Member

    126
    11
    18
    Jul 18, 2014
    Ratings:
    +15
    Local Time:
    8:29 AM
    for /proc/cpuinfo results are
    Code:
    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 62
    model name    : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHz
    stepping    : 4
    microcode    : 0x416
    cpu MHz        : 2200.048
    cache size    : 15360 KB
    physical id    : 0
    siblings    : 2
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 13
    wp        : yes
    flags        : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat epb pln pts dtherm fsgsbase erms
    bogomips    : 4400.09
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 46 bits physical, 48 bits virtual
    power management:
    
    processor    : 1
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 62
    model name    : Intel(R) Xeon(R) CPU E5-2420 v2 @ 2.20GHz
    stepping    : 4
    microcode    : 0x416
    cpu MHz        : 2200.048
    cache size    : 15360 KB
    physical id    : 0
    siblings    : 2
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 13
    wp        : yes
    flags        : fpu de tsc msr pae cx8 sep cmov pat clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc rep_good nopl pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt tsc_deadline_timer aes f16c rdrand hypervisor lahf_lm ida arat epb pln pts dtherm fsgsbase erms
    bogomips    : 4400.09
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 46 bits physical, 48 bits virtual
    power management:
    
    and for
    gcc -c -Q -march=native --help=target | egrep '\[enabled\]|mtune|march|mfpmath'
    Code:
      -m64                                [enabled]
      -m80387                             [enabled]
      -m96bit-long-double                 [enabled]
      -maes                               [enabled]
      -malign-stringops                   [enabled]
      -march=                             core-avx-i
      -mcx16                              [enabled]
      -mfancy-math-387                    [enabled]
      -mfentry                            [enabled]
      -mfp-ret-in-387                     [enabled]
      -mfpmath=                           387
      -mfsgsbase                          [enabled]
      -mfxsr                              [enabled]
      -mglibc                             [enabled]
      -mhard-float                        [enabled]
      -mieee-fp                           [enabled]
      -mlong-double-80                    [enabled]
      -mpclmul                            [enabled]
      -mpopcnt                            [enabled]
      -mpush-args                         [enabled]
      -mrdrnd                             [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=                             core-avx-i
      Valid arguments to -mfpmath=:
    
     
  6. eva2000

    eva2000 Administrator Staff Member

    55,237
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    3:29 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    also try php 5.6.27 and see if that has problems

    no idea why that cpu processor type is causing problems. you can try setting in persistent config file /etc/centminmod/custom_config.inc the variable to disable intel optimisations for php
    Code (Text):
    GCCINTEL_PHP='n'
    

    then retry centmin.sh menu option 5
     
    Last edited: Nov 23, 2016