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

Install Fresh Install Centminmod, can't run php

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Pepino, Apr 9, 2021.

  1. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Hello.
    Some tip for my vps? I can't compile php-fpm, MARCH_TARGETNATIVE='n' doesn't work.
    I had no problems in my based intel vps :(


    gist:a0a91bf590072a5f63a7146c4fd55ac5


    lscpu
    Code:
    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:    2
    Core(s) per socket:    1
    Socket(s):             1
    NUMA node(s):          1
    Vendor ID:             AuthenticAMD
    CPU family:            23
    Model:                 1
    Model name:            High Performance Datacenter vCPU
    Stepping:              2
    CPU MHz:               2495.312
    BogoMIPS:              4990.62
    Virtualization:        AMD-V
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             64K
    L2 cache:              512K
    L3 cache:              8192K
    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 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl extd_apicid eagerfpu pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext arat xsaveopt npt nrip_save vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap
    
    /opt/rh/devtoolset-8/root/usr/bin/gcc -c -Q -march=native --help=target | egrep 'march|mavx|mpclmul|mtune'
    Code:
      -march=                               bdver4
      -mavx                                 [enabled]
      -mavx2                                [enabled]
      -mavx256-split-unaligned-load         [disabled]
      -mavx256-split-unaligned-store        [enabled]
      -mavx5124fmaps                        [disabled]
      -mavx5124vnniw                        [disabled]
      -mavx512bitalg                        [disabled]
      -mavx512bw                            [disabled]
      -mavx512cd                            [disabled]
      -mavx512dq                            [disabled]
      -mavx512er                            [disabled]
      -mavx512f                             [disabled]
      -mavx512ifma                          [disabled]
      -mavx512pf                            [disabled]
      -mavx512vbmi                          [disabled]
      -mavx512vbmi2                         [disabled]
      -mavx512vl                            [disabled]
      -mavx512vnni                          [disabled]
      -mavx512vpopcntdq                     [disabled]
      -mpclmul                              [enabled]
      -mtune-ctrl=
      -mtune=                               bdver4
    
    /opt/rh/devtoolset-8/root/usr/bin/gcc -c -Q -march=native -mavx -mavx2 --help=target | egrep 'march|mavx|mpclmul|mtune'
    Code:
      -march=                               bdver4
      -mavx                                 [enabled]
      -mavx2                                [enabled]
      -mavx256-split-unaligned-load         [disabled]
      -mavx256-split-unaligned-store        [enabled]
      -mavx5124fmaps                        [disabled]
      -mavx5124vnniw                        [disabled]
      -mavx512bitalg                        [disabled]
      -mavx512bw                            [disabled]
      -mavx512cd                            [disabled]
      -mavx512dq                            [disabled]
      -mavx512er                            [disabled]
      -mavx512f                             [disabled]
      -mavx512ifma                          [disabled]
      -mavx512pf                            [disabled]
      -mavx512vbmi                          [disabled]
      -mavx512vbmi2                         [disabled]
      -mavx512vl                            [disabled]
      -mavx512vnni                          [disabled]
      -mavx512vpopcntdq                     [disabled]
      -mpclmul                              [enabled]
      -mtune-ctrl=
      -mtune=                               bdver4
    

    Thanks!
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Are you trying a php upgrade or fresh install as the log shows a PHP upgrade attempt which is failing as initial install is missing PHP
    Code (Text):
    Enter PHP Version number you want to upgrade/downgrade to: 7.4.16
    Do you still want to continue? [y/n] y
    ----------------------------------------------------------------
    existing php.ini will be backed up at /usr/local/lib/php.ini-oldversion_090421-034130
    ----------------------------------------------------------------
    inc/php_upgrade.inc: line 14: php: command not found
    

    Has PHP on this Centmin Mod installed server ever worked prior to now ? Or has PHP never worked ? If it never worked then need info for troubleshooting initial Centmin Mod install at Install - How to troubleshoot Centmin Mod initial install issues
     
  3. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Hello.
    Php never worked.

    This is the install log.
    https://gist.githubusercontent.com/...5626cafca/installer_090421-050946_minimal.log
    (I don't care about my hostname in the log because I'll create a new one).
    • VPS type ? KVM
    • Amount of memory ? 4GB
    • which build of Centmin Mod .07 stable or .08 beta ? I did
      betainstaller74.sh
    • Nginx version used ?
      nginx/1.19.8 (090421-031717-centos7-kvm-96caa91-br-9aec15e)
    I just followed https://servermanager.guide/203/wordpress-cache-enabler-advanced-full-page-caching-guide/. Same steps as I did in my production vps from other company with Haswell and my virtualbox centos with Zen 2, both working perfect.
     
    Last edited: Apr 10, 2021
  4. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Php log install says: No package 'libsystemd' found so I did some "random" commands.
    I'll update in a few minutes to replicate the fix and confirm the steps.

    Edit: The problem I believe is related to my vps cloud image.

    I replaced /etc/yum.repos.d/CentOS-Base.repo content.

    From:
    Code (Text):
    [CentOS-Base]
    name=CentOS-Base
    baseurl=http://centos.repos.clouding.io/$releasever/os/$basearch/
    gpgcheck=0
    priority=1
    priority=1
    priority=1
    priority=1
    priority=2
    priority=2
    


    To:
    Code (Text):
    # CentOS-Base.repo
    #
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the
    # remarked out baseurl= line instead.
    #
    #
    
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    
    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    priority=1
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=1
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    priority=2
    priority=2
    
    



    Looks like everything is working now.
     
    Last edited: Apr 13, 2021
  5. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah looks like your web hosts CentOS YUM repo file might be different to normal CentOS YUM repo files. You should have the original repo file for your web host at /etc/yum.repos.d/CentOS-Base.OLD after Centmin Mod installs so you can compare contents for before Centmin Mod install versus after
     
  6. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Yep. I see CentOS-Base.OLD is exactly the same content I took from my local CentOS.
    Also my provider image has a different kernel version:

    provider: 3.14.43-1
    stock: default CentOS 3.10.0-1160.21.1.el7.x86_64

    Is this a problem? Should I downgrade?
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Kernel should be fine.
    Then that is strange as you shouldn't have messed up CentOS Base unless you tried running Centmin Mod initial installer command more than once on the same server without a fresh CentOS 7 OS image reload - though Centmin Mod has protections to check for that usually.
     
  8. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Thanks @eva2000
    Sorry, my english is not the best as you can see. The only problem was my provider uses custom CentOS 7 OS images, that's the reason I had "wrong" content inside CentOS-Base.repo.
    After replace it with default CentOS-base.repo (took from a CentOS fresh install I did inside virtualbox) all is perfect. I have already Wordpress working perfectly (option 22).

    Greets!
     
  9. eva2000

    eva2000 Administrator Staff Member

    53,229
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    7:50 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah so they did something with default CentOS 7 image. Yeah hard to account for that.

    May I ask who your web host is so I know for future issues like this.
     
  10. Pepino

    Pepino New Member

    13
    7
    3
    Apr 9, 2021
    Ratings:
    +10
    Local Time:
    11:50 PM
    Yeah sure. clouding.io