Discover Centmin Mod today
Register Now

Almalinux 8 on Hetzner 4Gb Failed To Install NGINX

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by nVidian, May 19, 2024.

  1. nVidian

    nVidian Member

    97
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    5:29 AM
    1.7.9
    5.5
    The following test environment information is needed relevant to your EL8 server installation. Please provide the info in BBCODE CODE/CODEB tags for better formatting.

    1. Your web host and VPS/dedicated server plan? Hetzner Cloud CX21 4Gb, 2 Core (Intel), 40Gb

    2. Centmin Mod installed version info via command below:

    cminfo versions 130.00beta01.b602

    3. Provide CPU, memory and disk info via these 3 commands below:

    lscpu
    Code:
    # 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:  2
    Socket(s):           1
    NUMA node(s):        1
    Vendor ID:           GenuineIntel
    BIOS Vendor ID:      QEMU
    CPU family:          6
    Model:               85
    Model name:          Intel Xeon Processor (Skylake, IBRS)
    BIOS Model name:     NotSpecified
    Stepping:            4
    CPU MHz:             2294.608
    BogoMIPS:            4589.21
    Hypervisor vendor:   KVM
    Virtualization type: full
    L1d cache:           32K
    L1i cache:           32K
    L2 cache:            4096K
    L3 cache:            16384K
    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 pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm avx512f avx512dq rdseed adx smap clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat pku ospke md_clear
    


    free -mlt
    Code:
    # free -mlt
                  total        used        free      shared  buff/cache   available
    Mem:           3557         208        2483          29         865        3087
    Low:           3557        1074        2483
    High:             0           0           0
    Swap:          4095           0        4095
    Total:         7653         209        6578
    df -hT
    Code:
    # df -hT
    Filesystem     Type      Size  Used Avail Use% Mounted on
    devtmpfs       devtmpfs  1.8G     0  1.8G   0% /dev
    tmpfs          tmpfs     1.8G     0  1.8G   0% /dev/shm
    tmpfs          tmpfs     1.8G   25M  1.8G   2% /run
    tmpfs          tmpfs     1.8G     0  1.8G   0% /sys/fs/cgroup
    /dev/sda1      ext4       38G  9.0G   27G  26% /
    /dev/sda14     vfat       64M  5.9M   59M  10% /boot/efi
    /dev/loop0     ext4      3.9G   76K  3.7G   1% /tmp

    4. When creating a new thread, where possible please also create a relevant tag to make referencing easier i.e. almalinux, rockylinux, almalinux 8, rockylinux 8, nginx, PHP, mariadb, yum, firewall, csf, redis

    Hello,
    I just install centminmod 130 beta on Hetzner Cloud 4Gb 2 Core (intel skylake)

    Using this command to install:

    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller83.sh && chmod 0700 betainstaller83.sh && bash betainstaller83.sh
    And it failed to install NGINX
    Code:
                _   _         _                __  __         _
               | \ | |  __ _ (_) _ __  __  __ |  \/  |  __ _ | | __ ___
               |  \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
               | |\  || (_| || || | | | >  <  | |  | || (_| ||   <|  __/
               |_| \_| \__, ||_||_| |_|/_/\_\ |_|  |_| \__,_||_|\_\\___|
                       |___/
    make -f objs/Makefile
    make[1]: Entering directory '/svr-setup/nginx-1.25.5'
    cd ../ \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.25.5/..//.openssl no-shared no-threads enable-ec_nistp_64_gcc_128 enable-tls1_3 -fuse-ld=gold \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 2: ./config: No such file or directory
    make[1]: *** [objs/Makefile:2267: ..//.openssl/include/openssl/ssl.h] Error 127
    make[1]: Leaving directory '/svr-setup/nginx-1.25.5'
    make: *** [Makefile:10: build] Error 2
    
    real    0m0.053s
    user    0m0.042s
    sys     0m0.012s
    
             _   _         _                __  __         _
               | \ | |  __ _ (_) _ __  __  __ |  \/  |  __ _ | | __ ___
               |  \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
               | |\  || (_| || || | | | >  <  | |  | || (_| ||   <|  __/
               |_| \_| \__, ||_||_| |_|/_/\_\ |_|  |_| \__,_||_|\_\\___|
                       |___/
                            ___              _          _  _
                           |_ _| _ __   ___ | |_  __ _ | || |
                            | | | '_ \ / __|| __|/ _` || || |
                            | | | | | |\__ \| |_| (_| || || |
                           |___||_| |_||___/ \__|\__,_||_||_|
    
    make -f objs/Makefile install
    make[1]: Entering directory '/svr-setup/nginx-1.25.5'
    cd ../ \
    && if [ -f Makefile ]; then make clean; fi \
    && ./config --prefix=/svr-setup/nginx-1.25.5/..//.openssl no-shared no-threads enable-ec_nistp_64_gcc_128 enable-tls1_3 -fuse-ld=gold \
    && make \
    && make install_sw LIBDIR=lib
    /bin/sh: line 2: ./config: No such file or directory
    make[1]: *** [objs/Makefile:2267: ..//.openssl/include/openssl/ssl.h] Error 127
    make[1]: Leaving directory '/svr-setup/nginx-1.25.5'
    make: *** [Makefile:13: install] Error 2
    
    real    0m0.019s
    user    0m0.015s
    sys     0m0.003s
    ngx_dynamicfunction NGINX_VERSION=1.25.5
    ngx_dynamicfunction NGINX_HTTP2=y
    
    
      ____  _                  _      _   _         _
             / ___|| |__    ___   ___ | | __ | \ | |  __ _ (_) _ __  __  __
            | |    | '_ \  / _ \ / __|| |/ / |  \| | / _` || || '_ \ \ \/ /
            | |___ | | | ||  __/| (__ |   <  | |\  || (_| || || | | | >  <
             \____||_| |_| \___| \___||_|\_\ |_| \_| \__, ||_||_| |_|/_/\_\
                                                     |___/
                     ____                                   _
                    |  _ \  _   _  _ __    __ _  _ __ ___  (_)  ___
                    | | | || | | || '_ \  / _` || '_ ` _ \ | | / __|
                    | |_| || |_| || | | || (_| || | | | | || || (__
                    |____/  \__, ||_| |_| \__,_||_| |_| |_||_| \___|
                            |___/
                          __  __             _         _
                         |  \/  |  ___    __| | _   _ | |  ___
                         | |\/| | / _ \  / _` || | | || | / _ \
                         | |  | || (_) || (_| || |_| || ||  __/
                         |_|  |_| \___/  \__,_| \__,_||_| \___|
    
                      ____                                     _
                     / ___|  _   _  _ __   _ __    ___   _ __ | |_
                     \___ \ | | | || '_ \ | '_ \  / _ \ | '__|| __|
                      ___) || |_| || |_) || |_) || (_) || |   | |_
                     |____/  \__,_|| .__/ | .__/  \___/ |_|    \__|
                                   |_|    |_|
    
    NGX_DYNAMICCHECK nginx_configure
    /svr-setup/nginx-1.25.5
    
    nginx dynamic module support detected
    
    DETECT_NGXVER=1025005
    ${CUR_DIR} & ${CM_INSTALLDIR}
    /usr/local/src/centminmod
    /usr/local/src/centminmod
    
    Setup default hostname: xxx
    
    
    Initial Install: Update nginx for LimitNOFILE=1048576
    setup /etc/systemd/system/nginx.service.d/failure-restart.conf
    iptables: No chain/target/match by that name.
    ----------------------------------------------
    Creating /etc/logrotate.d/nginx file
    ----------------------------------------------
    Full Installation Log is here

     
    Last edited: May 19, 2024
  2. nVidian

    nVidian Member

    97
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    5:29 AM
    1.7.9
    5.5
    Install on Hetzner Cloud CX21 (RAM 4gb, 2 vCPU, 40Gb Disk) @Falkenstein DC, using this command:
    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller83.sh && chmod 0700 betainstaller83.sh && bash betainstaller83.sh
    
    NGINX failed to install on this server. And PHP version is not 8.3 as the command but 8.2.19
    Code:
    # php -v
    PHP 8.2.19 (cli) (built: May 19 2024 15:54:40) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.2.19, Copyright (c) Zend Technologies
        with Zend OPcache v8.2.19, Copyright (c), by Zend Technologies
    I already tried 5 times to install NGINX by using Nginx Upgrade / Downgrade (option 4 on centmin) but still no result.

    The weird thing is I also install with the same command on BuyVM RAM 2Gb (AlmaLinux 8) and it successfully installed. Although the installation process on BuyVM 2Gb RAM is very slow - https://community.centminmod.com/th...a01-el8-install-times.23265/page-5#post-99681
     
    Last edited: May 19, 2024
  3. eva2000

    eva2000 Administrator Staff Member

    52,262
    12,005
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,508
    Local Time:
    8:29 AM
    Nginx 1.25.x
    MariaDB 10.x
    Thanks for the reports. Will need to look at these install logs tomorrow and see. I did some fixes in 130.00beta01 for various things https://community.centminmod.com/forums/centmin-mod-github-commits.41/ one is for PHP 8.3 related for mailparse PHP extension.

    If you use 2GB memory with large disk swap, it will be slow to install as swapping to disk due to not enough memory will be slower than if you had 4GB memory and do not need to swap to disk.
     
  4. eva2000

    eva2000 Administrator Staff Member

    52,262
    12,005
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,508
    Local Time:
    8:29 AM
    Nginx 1.25.x
    MariaDB 10.x
    Looks like openssl 1.1.1 tarbal download file failed to download so openssl 1.1.1 for nginx failed to compile so nginx fails as openssl 1.1.1 dependency wasn't installed properly. Will have to investigate.

    edit: looks like openssl folks changed openssl 1.1.1 branches download url as openssl 1.1.1 is EOL but openssl 3.0 is slower than openssl 1.1.1 so for now openssl 1.1.1 is still being used for Centmin Mod Nginx. I've updated local fallback openssl 1.1.1 mirror to ensure you can still download 1.1.1 so if you try a new Centmin Mod install, it should now work for Nginx openssl compilation.
     
  5. nVidian

    nVidian Member

    97
    8
    8
    Mar 16, 2015
    Ratings:
    +31
    Local Time:
    5:29 AM
    1.7.9
    5.5
    Tested again with Alma Linux kernel 4.18 on Hetzner 3 cores EPYC 4Gb RAM: now it works.

    Although installed PHP is 8.2.x instead of 8.3.x
    Code:
    yum -y update; curl -O https://centminmod.com/betainstaller83.sh && chmod 0700 betainstaller83.sh && bash betainstaller83.sh
    Thanks @eva2000
     
  6. eva2000

    eva2000 Administrator Staff Member

    52,262
    12,005
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,508
    Local Time:
    8:29 AM
    Nginx 1.25.x
    MariaDB 10.x
    Glad to hear :D