Discover Centmin Mod today
Register Now

Compiling PHP on fresh install fails

Discussion in 'Install & Upgrades or Pre-Install Questions' started by digij, May 23, 2018.

  1. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.12
    • PHP Version Installed: 5.6.36
    • MariaDB MySQL Version Installed: 10.1.33
    • When was last time updated Centmin Mod code base ? : Fresh install
    • Persistent Config: No
    Fresh install via
    Compiling PHP fails (see output below)

    I have Centmin running on a few more KVM-VPS following the same procedure and never ran in such a problem. The only thing that sets the VPS I'm installing on apart is the rather old CPU...

    Code:
    cat /proc/cpuinfo
    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 45
    model name    : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
    stepping    : 7
    cpu MHz        : 2900.053
    cache size    : 4096 KB
    physical id    : 0
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 13
    wp        : yes
    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 pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm
    bogomips    : 5800.10
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 40 bits physical, 48 bits virtual
    power management:
    
    processor    : 1
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 45
    model name    : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
    stepping    : 7
    cpu MHz        : 2900.053
    cache size    : 4096 KB
    physical id    : 0
    siblings    : 1
    core id        : 0
    cpu cores    : 1
    apicid        : 0
    initial apicid    : 0
    fpu        : yes
    fpu_exception    : yes
    cpuid level    : 13
    wp        : yes
    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 pni ssse3 cx16 sse4_1 sse4_2 x2apic popcnt aes hypervisor lahf_lm
    bogomips    : 5800.10
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 40 bits physical, 48 bits virtual
    power management:
    Code:
    Generating phar.php /bin/sh: line 1: 13590 Illegal instruction     ` if test -x "/svr-setup/php-5.6.36/fpm-build/sapi/cli/php"; then /svr-setup/php-5.6.36/build/shtool echo -n -- "/svr-setup/php-5.6.36/fpm-build/sapi/cli/php -n"; if test "x" != "x"; then /svr-setup/php-5.6.36/build/shtool echo -n -- " -d extension_dir=/svr-setup/php-5.6.36/fpm-build/modules"; for i in bz2 zlib phar; do if test -f "/svr-setup/php-5.6.36/fpm-build/modules/$i.la"; then . /svr-setup/php-5.6.36/fpm-build/modules/$i.la; /svr-setup/php-5.6.36/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /svr-setup/php-5.6.36/build/shtool echo -n -- "/svr-setup/php-5.6.36/fpm-build/sapi/cli/php"; fi;` -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 -d 'safe_mode=0' /svr-setup/php-5.6.36/ext/phar/build_precommand.php > ext/phar/phar.php
    make: *** [ext/phar/phar.php] Error 132
    make: *** Waiting for unfinished jobs....
    
    real    5m21.328s
    user    7m4.097s
    sys    3m15.620s
    
    php_configure.inc make install
    /bin/sh /svr-setup/php-5.6.36/fpm-build/libtool --silent --preserve-dup-deps --mode=install cp ext/opcache/opcache.la /svr-setup/php-5.6.36/fpm-build/modules
    Generating phar.phar
    make: *** [ext/phar/phar.phar] Illegal instruction
    
    real    0m0.441s
    user    0m0.260s
    sys    0m0.217s
    
    strip PHP binary...
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    strip: '/usr/local/bin/php': No such file
    strip: '/usr/local/bin/php-cgi': No such file
    ls: cannot access /usr/local/bin/php: No such file or directory
    ls: cannot access /usr/local/bin/php-cgi: No such file or directory
    
    ----------------------------------------------------------------------------------
    PHP was not installed properly
    Thanks in advance for any help!
     
  2. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    To troubleshoot initial installation, you need to check the initial install log 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 initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues
     
  3. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    Thanks a lot for looking into this!
     
    Last edited: May 23, 2018
  4. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    gist is 404 not found for me
     
  5. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    I have realised... My account has been flagged right after uploading :sour:

    I guess the logfile must have triggered an algorithm...

    Do you mind sharing the file on e.g. OneDrive?
     
  6. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    try using pastebin.com
     
  7. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    No premium account and file-size approx. 4 mb...

    Let's see how they quick they are unflagging my GitHub account...

    Sorry for 'administrative trouble' :)

    I will post again when the file is ready.
     
  8. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    Pastebin has a sale running so I haven't been able to resist ;)
     
    Last edited: May 23, 2018
  9. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    looks like it's due to probably bios settings or your web host kvm configuration not passing all the supported cpu flags i.e. avx is missing

    googled for E5-2690v1 cpuinfo example and found
    Code (Text):
    /proc/cpuinfo: vendor_id    : GenuineIntel
    /proc/cpuinfo: cpu family    : 6
    /proc/cpuinfo: model        : 45
    /proc/cpuinfo: model name    : Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz
    /proc/cpuinfo: stepping    : 7
    /proc/cpuinfo: microcode    : 0x70d
    /proc/cpuinfo: cpu MHz        : 2900.351
    /proc/cpuinfo: cache size    : 20480 KB
    /proc/cpuinfo: physical id    : 0
    /proc/cpuinfo: siblings    : 16
    /proc/cpuinfo: core id        : 0
    /proc/cpuinfo: cpu cores    : 8
    /proc/cpuinfo: apicid        : 0
    /proc/cpuinfo: initial apicid    : 0
    /proc/cpuinfo: fpu        : yes
    /proc/cpuinfo: fpu_exception    : yes
    /proc/cpuinfo: cpuid level    : 13
    /proc/cpuinfo: wp        : yes
    /proc/cpuinfo: flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
    


    even my same family OpenVZ VPS with E5-2670v1 cpu has avx enabled
    Code (Text):
    cat /proc/cpuinfo 
    processor       : 0
    vendor_id       : GenuineIntel
    cpu family      : 6
    model           : 45
    model name      : Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz
    stepping        : 6
    microcode       : 1561
    cpu MHz         : 2600.093
    cache size      : 20480 KB
    physical id     : 0
    siblings        : 16
    core id         : 0
    cpu cores       : 8
    apicid          : 0
    initial apicid  : 0
    fpu             : yes
    fpu_exception   : yes
    cpuid level     : 13
    wp              : yes
    flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb pln pts dtherm pti retpoline tpr_shadow vnmi flexpriority ept vpid xsaveopt
    bogomips        : 5200.18
    clflush size    : 64
    cache_alignment : 64
    address sizes   : 46 bits physical, 48 bits virtual
    power management:
    

    I will have to add a check for avx flag into 123.09beta01 but the problem really is your KVM or server config/bios not having enabled AVX
     
  10. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  11. digij

    digij New Member

    8
    1
    3
    Jan 25, 2018
    Ratings:
    +2
    Local Time:
    5:41 PM
    Fresh install successful (y)

    Many thanks!

    I have more KVMs from this provider (also on other host nodes - but so far no Centmin install attempts). After a curious check - none of them is exposing AVX to the guest system.

    Let's see what they say ref. CPU flags - I opened a ticket.
     
    • Informative Informative x 1
  12. eva2000

    eva2000 Administrator Staff Member

    34,632
    7,655
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,773
    Local Time:
    2:41 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Great to hear. Yes hopefully your web host fixes up their KVM configs :)
     
    • Like Like x 1
..