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

Wordpress Bad gateway Error Code 502 Php -v Command Not Found

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by jacknguyen, May 10, 2023.

  1. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    Hi,
    My website is installed with WordPress on CentminMod. I haven't updated or made any changes to the website. One day, when I accessed the website, I encountered a 502 Bad Gateway error. At that time, I thought there might be an issue with the server. So, I SSH into the server to back up the source code and the database. Today, I built a new server, installed a fresh copy of CentminMod (124.00stable.s74)
    , and pointed the domain to the new IP. When I accessed the website, it displayed the CentminMod homepage correctly. However, after uploading the source code and importing the database, the 502 error occurred again. . There is one issue that when I tried to check PHP version using the command "php -v," it showed an error "Command Not Found."
    Code:
    php -v
    -bash: php: command not found
    Then I went to centmin.sh option5 to upgrade PHP, and an interesting error occurred.
    Code:
    inc/php_upgrade.inc: line 337: php-config: command not found
    Current PHP Version:
    inc/php_upgrade.inc: line 348: php-config: command not found
    Can Not Determine Latest PHP Version Installable:
    -
    Any idea on this @eva2000

    Thank you.

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    PHP-FPM wasn't installed or didn't install correctly which can verify via initial install log. You'll need to post on the forums with the following info
    • Server or VPS details ? XEN, KVM, OpenVZ, VMWare or dedicated server ? OS ? CentOS 6.9 or 7.4 ? 32bit or 64bit ?
    • What version of Centmin Mod ? .07 stable or 08 stable or .09 beta01 or another branch version ?
    • Was it fresh install or upgrade ?
    • Method of install ? Via centmin.sh menu option 1, Git install or curl one liner install as outlined at centminmod.com/download.html ?
    • How long ago did you install Centmin Mod ?
    • There's numerous code changes, bug fixes over time, so ensure you have latest Centmin Mod code installed by upgrading your Centmin Mod code as instructed below.

    Troubleshooting Initial Install



    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 for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable 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

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.log
    


    Installer Summary Links Log



    As at December 25th, 2021, added a new /root/centminlogs/installer_summary_links.log summary log which is a text file that links to the initial install's important log files for easier referencing and troubleshooting. Example contents of /root/centminlogs/installer_summary_links.log:

    Code (Text):
    Full initial install log: /root/centminlogs/installer_071221-010436.log
    Minimal initial install log: /root/centminlogs/installer_071221-010436_minimal.log
    Initial install time stats: /root/centminlogs/install_time_stats_071221-010436.log
    Initial install nginx configure options: /root/centminlogs/nginx-configure-071221-010927.log
    Initial install sar stats:
    /root/centminlogs/sar-b-installstats.log
    /root/centminlogs/sar-d-installstats.log
    /root/centminlogs/sar-r-installstats.log
    /root/centminlogs/sar-q-installstats.log
    /root/centminlogs/sar-u-installstats.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

    Sharing Logs Via Dropbox



    You can also share the relevant required log files outlined above via Dropbox send via email feature at https://community.centminmod.com/threads/using-dropbox-to-share-server-files.22327/

    Upgrading Centmin Mod Code to Latest Version



    Upgrading Centmin Mod involves 2 parts.
    1. Upgrading the actual Centmin Mod code outlined at Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS This is heart of Centmin Mod where the code is the engine that runs centmin.sh shell based menu and all the automation you're accustomed to.
    2. Upgrade software that Centmin Mod installed or manages. For this part following outline at Upgrade - How to upgrade Centmin Mod | Centmin Mod Community
    So essentially, you can upgrade from .07 to .08 in place, but not everything is upgraded as some things like server initial environment setup isn't changed i.e. how swap, tmp setup and allocation are created etc. The main parts from part 2 above are what in place upgrades do i.e. Nginx and PHP-FPM compilation and config/settings parameters and MariaDB version from 5.5 to 10.0.x. If you want the full environment changed including tmp and swap setup to .08's configuration, then you would need a fresh OS install and fresh .08 initial install. You can think of it like upgrading Windows 7 to Windows 8. An in place upgrade will upgrade code but won't change your computer environment from when you installed Windows 7 i.e. disk configuration and partition sizes won't change from when you initially installed Windows 7. Only way to change that would be fresh Windows 8 install.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    Here are the detailed steps I followed:
    1- VPS Digital Ocean
    Code:
    cat /proc/cpuinfo
    processor    : 0
    vendor_id    : GenuineIntel
    cpu family    : 6
    model        : 85
    model name    : DO-Premium-Intel
    stepping    : 7
    microcode    : 0x1
    cpu MHz        : 2494.140
    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 syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq vmx ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb xsaveopt xsavec xgetbv1 arat pku ospke spec_ctrl arch_capabilities
    bogomips    : 4988.28
    clflush size    : 64
    cache_alignment    : 64
    address sizes    : 40 bits physical, 48 bits virtual
    power management:
    Code:
    free -m
    
                  total        used        free      shared  buff/cache   available
    
    Mem:            990         270         299          22         420         493
    
    Swap:          1023          30         993
    
    2. I used Centos 7 64 Fresh install
    Code:
    yum -y update; curl -O https://centminmod.com/installer81.sh && chmod 0700 installer81.sh && bash installer81.sh
     
    Last edited: May 11, 2023
  5. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    3.
    Code:
    cat /root/centminlogs/centminmod_124.00stable.s74_100523-142101_pcre-nginx_install.log
    Code:
    *************************************************
    * Source Install PCRE For Nginx
    *************************************************
    /svr-setup /svr-setup/nginx-1.23.3
    Compiling PCRE For Nginx...
     rm -f pcretest pcregrep
    test -z "pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep" || rm -f pcre_chartables.c testsavedregex teststderr testtemp* testtry testNinput testtrygrep teststderrgrep testNinputgrep
    test -z "libpcre.la libpcre16.la libpcre32.la libpcreposix.la libpcrecpp.la" || rm -f libpcre.la libpcre16.la libpcre32.la libpcreposix.la libpcrecpp.la
    rm -f ./so_locations
    rm -rf .libs _libs
     rm -f pcre_jit_test pcrecpp_unittest pcre_scanner_unittest pcre_stringpiece_unittest
    rm -f *.o
    test -z "pcre_jit_test.log pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log" || rm -f pcre_jit_test.log pcrecpp_unittest.log pcre_scanner_unittest.log pcre_stringpiece_unittest.log RunTest.log RunGrepTest.log
    test -z "pcre_jit_test.trs pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs" || rm -f pcre_jit_test.trs pcrecpp_unittest.trs pcre_scanner_unittest.trs pcre_stringpiece_unittest.trs RunTest.trs RunGrepTest.trs
    test -z "test-suite.log" || rm -f test-suite.log
    rm -f *.lo
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a race-free mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether make supports nested variables... (cached) yes
    checking whether make supports the include directive... yes (GNU style)
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether the compiler supports GNU C... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to enable C11 features... none needed
    checking whether gcc understands -c and -o together... yes
    checking dependency style of gcc... gcc3
    checking for ar... ar
    checking the archiver (ar) interface... ar
    checking for gcc... (cached) gcc
    checking whether the compiler supports GNU C... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to enable C11 features... (cached) none needed
    checking whether gcc understands -c and -o together... (cached) yes
    checking dependency style of gcc... (cached) gcc3
    checking for g++... g++
    checking whether the compiler supports GNU C++... yes
    checking whether g++ accepts -g... yes
    checking for g++ option to enable C++11 features... none needed
    checking dependency style of g++... gcc3
    checking for stdio.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for strings.h... yes
    checking for sys/stat.h... yes
    checking for sys/types.h... yes
    checking for unistd.h... yes
    checking for int64_t... yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc... /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld
    checking if the linker (/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /opt/rh/devtoolset-10/root/usr/bin/nm -B
    checking the name lister (/opt/rh/devtoolset-10/root/usr/bin/nm -B) interface... BSD nm
    checking whether ln -s works... yes
    checking the maximum length of command line arguments... 1572864
    checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... dlltool
    checking how to associate runtime and link libraries... printf %s\n
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /opt/rh/devtoolset-10/root/usr/bin/nm -B output from gcc object... ok
    checking for sysroot... no
    checking for a working dd... /bin/dd
    checking how to truncate binary pipes... /bin/dd bs=4096 count=1
    checking for mt... no
    checking if : is a manifest tool... no
    checking for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC -DPIC
    checking if gcc PIC flag -fPIC -DPIC works... yes
    checking if gcc static flag -static works... no
    checking if gcc supports -c -o file.o... yes
    checking if gcc supports -c -o file.o... (cached) yes
    checking whether the gcc linker (/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for ld used by g++... /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64
    checking if the linker (/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC -DPIC
    checking if g++ PIC flag -fPIC -DPIC works... yes
    checking if g++ static flag -static works... no
    checking if g++ supports -c -o file.o... yes
    checking if g++ supports -c -o file.o... (cached) yes
    checking whether the g++ linker (/opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... (cached) GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether ln -s works... yes
    checking whether the -Werror option is usable... yes
    checking for simple visibility declarations... yes
    checking for egrep... (cached) /bin/grep -E
    checking for limits.h... yes
    checking for sys/types.h... (cached) yes
    checking for sys/stat.h... (cached) yes
    checking for dirent.h... yes
    checking for windows.h... no
    checking for alias support in the linker... no
    checking for alias support in the linker... no
    checking for string... yes
    checking for bits/type_traits.h... no
    checking for type_traits.h... no
    checking for strtoq... yes
    checking for long long... yes
    checking for unsigned long long... yes
    checking for an ANSI C-conforming const... yes
    checking for size_t... yes
    checking for bcopy... yes
    checking for memmove... yes
    checking for strerror... yes
    checking for zlib.h... yes
    checking for gzopen in -lz... yes
    checking for bzlib.h... yes
    checking for libbz2... yes
    checking for readline/readline.h... yes
    checking for readline/history.h... yes
    checking for readline in -lreadline... yes
    checking for the pthreads library -lpthreads... no
    checking whether pthreads work without any flags... no
    checking whether pthreads work with -Kthread... no
    checking whether pthreads work with -kthread... no
    checking for the pthreads library -llthread... no
    checking whether pthreads work with -pthread... yes
    checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
    checking if more special flags are required for pthreads... no
    checking for PTHREAD_PRIO_INHERIT... yes
    checking that generated files are newer than configure... done
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating libpcre.pc
    config.status: creating libpcre16.pc
    config.status: creating libpcre32.pc
    config.status: creating libpcreposix.pc
    config.status: creating libpcrecpp.pc
    config.status: creating pcre-config
    config.status: creating pcre.h
    config.status: creating pcre_stringpiece.h
    config.status: creating pcrecpparg.h
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing script-chmod commands
    config.status: executing delete-old-chartables commands
    
    pcre-8.45 configuration summary:
    
        Install prefix .................. : /usr/local/nginx-dep
        C preprocessor .................. :
        C compiler ...................... : gcc
        C++ preprocessor ................ : g++ -E
        C++ compiler .................... : g++
        Linker .......................... : /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld -m elf_x86_64
        C preprocessor flags ............ :
        C compiler flags ................ : -pthread -g -O2 -fvisibility=hidden
        C++ compiler flags .............. : -O2 -fvisibility=hidden -fvisibility-inlines-hidden
        Linker flags .................... :
        Extra libraries ................. : 
    
        Build 8 bit pcre library ........ : yes
        Build 16 bit pcre library ....... : yes
        Build 32 bit pcre library ....... : yes
        Build C++ library ............... : yes
        Enable JIT compiling support .... : yes
        Enable UTF-8/16/32 support ...... : yes
        Unicode properties .............. : yes
        Newline char/sequence ........... : lf
        \R matches only ANYCRLF ......... : no
        EBCDIC coding ................... : no
        EBCDIC code for NL .............. : n/a
        Rebuild char tables ............. : no
        Use stack recursion ............. : yes
        POSIX mem threshold ............. : 10
        Internal link size .............. : 2
        Nested parentheses limit ........ : 250
        Match limit ..................... : 10000000
        Match limit recursion ........... : MATCH_LIMIT
        Build shared libs ............... : yes
        Build static libs ............... : yes
        Use JIT in pcregrep ............. : yes
        Buffer size for pcregrep ........ : 20480
        Link pcregrep with libz ......... : yes
        Link pcregrep with libbz2 ....... : yes
        Link pcretest with libedit ...... : no
        Link pcretest with libreadline .. : yes
        Valgrind support ................ : no
        Code coverage ................... : no
    
    rm -f pcre_chartables.c
    ln -s ./pcre_chartables.c.dist pcre_chartables.c
    make  all-am
    make[1]: Entering directory `/svr-setup/pcre-8.45'
      CC       pcretest-pcretest.o
      CC       pcretest-pcre_printint.o
      CC       pcretest-pcre16_printint.o
      CC       pcretest-pcre32_printint.o
      CC       libpcre_la-pcre_byte_order.lo
      CC       libpcre_la-pcre_compile.lo
      CC       libpcre_la-pcre_config.lo
      CC       libpcre_la-pcre_dfa_exec.lo
      CC       libpcre_la-pcre_exec.lo
      CC       libpcre_la-pcre_fullinfo.lo
      CC       libpcre_la-pcre_get.lo
      CC       libpcre_la-pcre_globals.lo
      CC       libpcre_la-pcre_jit_compile.lo
      CC       libpcre_la-pcre_maketables.lo
      CC       libpcre_la-pcre_newline.lo
      CC       libpcre_la-pcre_ord2utf8.lo
      CC       libpcre_la-pcre_refcount.lo
      CC       libpcre_la-pcre_string_utils.lo
      CC       libpcre_la-pcre_study.lo
      CC       libpcre_la-pcre_tables.lo
      CC       libpcre_la-pcre_ucd.lo
      CC       libpcre_la-pcre_valid_utf8.lo
      CC       libpcre_la-pcre_version.lo
      CC       libpcre_la-pcre_xclass.lo
      CC       libpcre_la-pcre_chartables.lo
      CC       libpcreposix_la-pcreposix.lo
      CC       libpcre16_la-pcre16_byte_order.lo
      CC       libpcre16_la-pcre16_chartables.lo
      CC       libpcre16_la-pcre16_compile.lo
      CC       libpcre16_la-pcre16_config.lo
      CC       libpcre16_la-pcre16_dfa_exec.lo
      CC       libpcre16_la-pcre16_exec.lo
      CC       libpcre16_la-pcre16_fullinfo.lo
      CC       libpcre16_la-pcre16_get.lo
      CC       libpcre16_la-pcre16_globals.lo
      CC       libpcre16_la-pcre16_jit_compile.lo
      CC       libpcre16_la-pcre16_maketables.lo
      CC       libpcre16_la-pcre16_newline.lo
      CC       libpcre16_la-pcre16_ord2utf16.lo
      CC       libpcre16_la-pcre16_refcount.lo
      CC       libpcre16_la-pcre16_string_utils.lo
      CC       libpcre16_la-pcre16_study.lo
      CC       libpcre16_la-pcre16_tables.lo
      CC       libpcre16_la-pcre16_ucd.lo
      CC       libpcre16_la-pcre16_utf16_utils.lo
      CC       libpcre16_la-pcre16_valid_utf16.lo
      CC       libpcre16_la-pcre16_version.lo
      CC       libpcre16_la-pcre16_xclass.lo
      CC       libpcre16_la-pcre_chartables.lo
      CC       libpcre32_la-pcre32_byte_order.lo
      CC       libpcre32_la-pcre32_chartables.lo
      CC       libpcre32_la-pcre32_compile.lo
      CC       libpcre32_la-pcre32_config.lo
      CC       libpcre32_la-pcre32_dfa_exec.lo
      CC       libpcre32_la-pcre32_exec.lo
      CC       libpcre32_la-pcre32_fullinfo.lo
      CC       libpcre32_la-pcre32_get.lo
      CC       libpcre32_la-pcre32_globals.lo
      CC       libpcre32_la-pcre32_jit_compile.lo
      CC       libpcre32_la-pcre32_maketables.lo
      CC       libpcre32_la-pcre32_newline.lo
      CC       libpcre32_la-pcre32_ord2utf32.lo
      CC       libpcre32_la-pcre32_refcount.lo
      CC       libpcre32_la-pcre32_string_utils.lo
      CC       libpcre32_la-pcre32_study.lo
      CC       libpcre32_la-pcre32_tables.lo
      CC       libpcre32_la-pcre32_ucd.lo
      CC       libpcre32_la-pcre32_utf32_utils.lo
      CC       libpcre32_la-pcre32_valid_utf32.lo
      CC       libpcre32_la-pcre32_version.lo
      CC       libpcre32_la-pcre32_xclass.lo
      CC       libpcre32_la-pcre_chartables.lo
      CC       pcregrep-pcregrep.o
      CC       pcre_jit_test-pcre_jit_test.o
      CXX      pcrecpp_unittest-pcrecpp_unittest.o
      CXX      libpcrecpp_la-pcrecpp.lo
      CXX      libpcrecpp_la-pcre_scanner.lo
      CXX      libpcrecpp_la-pcre_stringpiece.lo
      CXX      pcre_scanner_unittest-pcre_scanner_unittest.o
      CXX      pcre_stringpiece_unittest-pcre_stringpiece_unittest.o
      CCLD     libpcre.la
      CCLD     libpcre16.la
      CCLD     libpcre32.la
      CXXLD    libpcrecpp.la
      CCLD     libpcreposix.la
      CCLD     pcre_jit_test
      CXXLD    pcrecpp_unittest
      CXXLD    pcre_scanner_unittest
      CXXLD    pcre_stringpiece_unittest
      CCLD     pcretest
      CCLD     pcregrep
    make[1]: Leaving directory `/svr-setup/pcre-8.45'
    make  install-am
    make[1]: Entering directory `/svr-setup/pcre-8.45'
    make[2]: Entering directory `/svr-setup/pcre-8.45'
     /bin/mkdir -p '/usr/local/nginx-dep/lib'
     /bin/sh ./libtool   --mode=install /bin/install -c   libpcre.la libpcre16.la libpcre32.la libpcreposix.la libpcrecpp.la '/usr/local/nginx-dep/lib'
    libtool: install: /bin/install -c .libs/libpcre.so.1.2.13 /usr/local/nginx-dep/lib/libpcre.so.1.2.13
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre.so.1.2.13 libpcre.so.1 || { rm -f libpcre.so.1 && ln -s libpcre.so.1.2.13 libpcre.so.1; }; })
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre.so.1.2.13 libpcre.so || { rm -f libpcre.so && ln -s libpcre.so.1.2.13 libpcre.so; }; })
    libtool: install: /bin/install -c .libs/libpcre.lai /usr/local/nginx-dep/lib/libpcre.la
    libtool: install: /bin/install -c .libs/libpcre16.so.0.2.13 /usr/local/nginx-dep/lib/libpcre16.so.0.2.13
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre16.so.0.2.13 libpcre16.so.0 || { rm -f libpcre16.so.0 && ln -s libpcre16.so.0.2.13 libpcre16.so.0; }; })
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre16.so.0.2.13 libpcre16.so || { rm -f libpcre16.so && ln -s libpcre16.so.0.2.13 libpcre16.so; }; })
    libtool: install: /bin/install -c .libs/libpcre16.lai /usr/local/nginx-dep/lib/libpcre16.la
    libtool: install: /bin/install -c .libs/libpcre32.so.0.0.13 /usr/local/nginx-dep/lib/libpcre32.so.0.0.13
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre32.so.0.0.13 libpcre32.so.0 || { rm -f libpcre32.so.0 && ln -s libpcre32.so.0.0.13 libpcre32.so.0; }; })
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcre32.so.0.0.13 libpcre32.so || { rm -f libpcre32.so && ln -s libpcre32.so.0.0.13 libpcre32.so; }; })
    libtool: install: /bin/install -c .libs/libpcre32.lai /usr/local/nginx-dep/lib/libpcre32.la
    libtool: warning: relinking 'libpcreposix.la'
    libtool: install: (cd /svr-setup/pcre-8.45; /bin/sh "/svr-setup/pcre-8.45/libtool"  --silent --tag CC --mode=relink gcc -fvisibility=hidden -pthread -g -O2 -version-info 0:7:0 -o libpcreposix.la -rpath /usr/local/nginx-dep/lib libpcreposix_la-pcreposix.lo libpcre.la )
    libtool: install: /bin/install -c .libs/libpcreposix.so.0.0.7T /usr/local/nginx-dep/lib/libpcreposix.so.0.0.7
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcreposix.so.0.0.7 libpcreposix.so.0 || { rm -f libpcreposix.so.0 && ln -s libpcreposix.so.0.0.7 libpcreposix.so.0; }; })
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcreposix.so.0.0.7 libpcreposix.so || { rm -f libpcreposix.so && ln -s libpcreposix.so.0.0.7 libpcreposix.so; }; })
    libtool: install: /bin/install -c .libs/libpcreposix.lai /usr/local/nginx-dep/lib/libpcreposix.la
    libtool: warning: relinking 'libpcrecpp.la'
    libtool: install: (cd /svr-setup/pcre-8.45; /bin/sh "/svr-setup/pcre-8.45/libtool"  --silent --tag CXX --mode=relink g++ -fvisibility=hidden -fvisibility-inlines-hidden -O2 -version-info 0:2:0 -o libpcrecpp.la -rpath /usr/local/nginx-dep/lib libpcrecpp_la-pcrecpp.lo libpcrecpp_la-pcre_scanner.lo libpcrecpp_la-pcre_stringpiece.lo libpcre.la )
    libtool: install: /bin/install -c .libs/libpcrecpp.so.0.0.2T /usr/local/nginx-dep/lib/libpcrecpp.so.0.0.2
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcrecpp.so.0.0.2 libpcrecpp.so.0 || { rm -f libpcrecpp.so.0 && ln -s libpcrecpp.so.0.0.2 libpcrecpp.so.0; }; })
    libtool: install: (cd /usr/local/nginx-dep/lib && { ln -s -f libpcrecpp.so.0.0.2 libpcrecpp.so || { rm -f libpcrecpp.so && ln -s libpcrecpp.so.0.0.2 libpcrecpp.so; }; })
    libtool: install: /bin/install -c .libs/libpcrecpp.lai /usr/local/nginx-dep/lib/libpcrecpp.la
    libtool: install: /bin/install -c .libs/libpcre.a /usr/local/nginx-dep/lib/libpcre.a
    libtool: install: chmod 644 /usr/local/nginx-dep/lib/libpcre.a
    libtool: install: ranlib /usr/local/nginx-dep/lib/libpcre.a
    libtool: install: /bin/install -c .libs/libpcre16.a /usr/local/nginx-dep/lib/libpcre16.a
    libtool: install: chmod 644 /usr/local/nginx-dep/lib/libpcre16.a
    libtool: install: ranlib /usr/local/nginx-dep/lib/libpcre16.a
    libtool: install: /bin/install -c .libs/libpcre32.a /usr/local/nginx-dep/lib/libpcre32.a
    libtool: install: chmod 644 /usr/local/nginx-dep/lib/libpcre32.a
    libtool: install: ranlib /usr/local/nginx-dep/lib/libpcre32.a
    libtool: install: /bin/install -c .libs/libpcreposix.a /usr/local/nginx-dep/lib/libpcreposix.a
    libtool: install: chmod 644 /usr/local/nginx-dep/lib/libpcreposix.a
    libtool: install: ranlib /usr/local/nginx-dep/lib/libpcreposix.a
    libtool: install: /bin/install -c .libs/libpcrecpp.a /usr/local/nginx-dep/lib/libpcrecpp.a
    libtool: install: chmod 644 /usr/local/nginx-dep/lib/libpcrecpp.a
    libtool: install: ranlib /usr/local/nginx-dep/lib/libpcrecpp.a
    libtool: finish: PATH="/opt/rh/devtoolset-10/root/usr/bin:/opt/rh/devtoolset-10/root/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/nginx-dep/lib
    ----------------------------------------------------------------------
    Libraries have been installed in:
       /usr/local/nginx-dep/lib
    
    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the '-LLIBDIR'
    flag during linking and do at least one of the following:
       - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
         during execution
       - add LIBDIR to the 'LD_RUN_PATH' environment variable
         during linking
       - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
       - have your system administrator add LIBDIR to '/etc/ld.so.conf'
    
    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------
     /bin/mkdir -p '/usr/local/nginx-dep/bin'
      /bin/sh ./libtool   --mode=install /bin/install -c pcretest pcregrep '/usr/local/nginx-dep/bin'
    libtool: install: /bin/install -c .libs/pcretest /usr/local/nginx-dep/bin/pcretest
    libtool: install: /bin/install -c .libs/pcregrep /usr/local/nginx-dep/bin/pcregrep
     /bin/mkdir -p '/usr/local/nginx-dep/bin'
     /bin/install -c pcre-config '/usr/local/nginx-dep/bin'
     /bin/mkdir -p '/usr/local/nginx-dep/share/doc/pcre'
     /bin/install -c -m 644 doc/pcre.txt doc/pcre-config.txt doc/pcregrep.txt doc/pcretest.txt AUTHORS COPYING ChangeLog LICENCE NEWS README '/usr/local/nginx-dep/share/doc/pcre'
     /bin/mkdir -p '/usr/local/nginx-dep/share/doc/pcre/html'
     /bin/install -c -m 644 doc/html/NON-AUTOTOOLS-BUILD.txt doc/html/README.txt doc/html/index.html doc/html/pcre-config.html doc/html/pcre.html doc/html/pcre16.html doc/html/pcre32.html doc/html/pcre_assign_jit_stack.html doc/html/pcre_compile.html doc/html/pcre_compile2.html doc/html/pcre_config.html doc/html/pcre_copy_named_substring.html doc/html/pcre_copy_substring.html doc/html/pcre_dfa_exec.html doc/html/pcre_exec.html doc/html/pcre_free_study.html doc/html/pcre_free_substring.html doc/html/pcre_free_substring_list.html doc/html/pcre_fullinfo.html doc/html/pcre_get_named_substring.html doc/html/pcre_get_stringnumber.html doc/html/pcre_get_stringtable_entries.html doc/html/pcre_get_substring.html doc/html/pcre_get_substring_list.html doc/html/pcre_jit_exec.html doc/html/pcre_jit_stack_alloc.html doc/html/pcre_jit_stack_free.html doc/html/pcre_maketables.html doc/html/pcre_pattern_to_host_byte_order.html doc/html/pcre_refcount.html doc/html/pcre_study.html doc/html/pcre_utf16_to_host_byte_order.html doc/html/pcre_utf32_to_host_byte_order.html doc/html/pcre_version.html doc/html/pcreapi.html doc/html/pcrebuild.html doc/html/pcrecallout.html doc/html/pcrecompat.html doc/html/pcredemo.html doc/html/pcregrep.html '/usr/local/nginx-dep/share/doc/pcre/html'
     /bin/install -c -m 644 doc/html/pcrejit.html doc/html/pcrelimits.html doc/html/pcrematching.html doc/html/pcrepartial.html doc/html/pcrepattern.html doc/html/pcreperform.html doc/html/pcreposix.html doc/html/pcreprecompile.html doc/html/pcresample.html doc/html/pcrestack.html doc/html/pcresyntax.html doc/html/pcretest.html doc/html/pcreunicode.html '/usr/local/nginx-dep/share/doc/pcre/html'
     /bin/mkdir -p '/usr/local/nginx-dep/share/doc/pcre/html'
     /bin/install -c -m 644 doc/html/pcrecpp.html '/usr/local/nginx-dep/share/doc/pcre/html'
     /bin/mkdir -p '/usr/local/nginx-dep/include'
     /bin/install -c -m 644 pcreposix.h pcrecpp.h pcre_scanner.h '/usr/local/nginx-dep/include'
     /bin/mkdir -p '/usr/local/nginx-dep/share/man/man1'
     /bin/install -c -m 644 doc/pcre-config.1 doc/pcregrep.1 doc/pcretest.1 '/usr/local/nginx-dep/share/man/man1'
     /bin/mkdir -p '/usr/local/nginx-dep/share/man/man3'
     /bin/install -c -m 644 doc/pcre.3 doc/pcre16.3 doc/pcre32.3 doc/pcre_assign_jit_stack.3 doc/pcre_compile.3 doc/pcre_compile2.3 doc/pcre_config.3 doc/pcre_copy_named_substring.3 doc/pcre_copy_substring.3 doc/pcre_dfa_exec.3 doc/pcre_exec.3 doc/pcre_free_study.3 doc/pcre_free_substring.3 doc/pcre_free_substring_list.3 doc/pcre_fullinfo.3 doc/pcre_get_named_substring.3 doc/pcre_get_stringnumber.3 doc/pcre_get_stringtable_entries.3 doc/pcre_get_substring.3 doc/pcre_get_substring_list.3 doc/pcre_jit_exec.3 doc/pcre_jit_stack_alloc.3 doc/pcre_jit_stack_free.3 doc/pcre_maketables.3 doc/pcre_pattern_to_host_byte_order.3 doc/pcre_refcount.3 doc/pcre_study.3 doc/pcre_utf16_to_host_byte_order.3 doc/pcre_utf32_to_host_byte_order.3 doc/pcre_version.3 doc/pcreapi.3 doc/pcrebuild.3 doc/pcrecallout.3 doc/pcrecompat.3 doc/pcredemo.3 doc/pcrejit.3 doc/pcrelimits.3 doc/pcrematching.3 doc/pcrepartial.3 doc/pcrepattern.3 '/usr/local/nginx-dep/share/man/man3'
     /bin/install -c -m 644 doc/pcreperform.3 doc/pcreposix.3 doc/pcreprecompile.3 doc/pcresample.3 doc/pcrestack.3 doc/pcresyntax.3 doc/pcreunicode.3 doc/pcrecpp.3 '/usr/local/nginx-dep/share/man/man3'
     /bin/mkdir -p '/usr/local/nginx-dep/include'
     /bin/install -c -m 644 pcre.h pcrecpparg.h pcre_stringpiece.h '/usr/local/nginx-dep/include'
     /bin/mkdir -p '/usr/local/nginx-dep/lib/pkgconfig'
     /bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcre16.pc libpcre32.pc libpcrecpp.pc '/usr/local/nginx-dep/lib/pkgconfig'
    make  install-data-hook
    make[3]: Entering directory `/svr-setup/pcre-8.45'
    ln -sf pcre_assign_jit_stack.3         /usr/local/nginx-dep/share/man/man3/pcre16_assign_jit_stack.3
    ln -sf pcre_compile.3             /usr/local/nginx-dep/share/man/man3/pcre16_compile.3
    ln -sf pcre_compile2.3             /usr/local/nginx-dep/share/man/man3/pcre16_compile2.3
    ln -sf pcre_config.3             /usr/local/nginx-dep/share/man/man3/pcre16_config.3
    ln -sf pcre_copy_named_substring.3     /usr/local/nginx-dep/share/man/man3/pcre16_copy_named_substring.3
    ln -sf pcre_copy_substring.3         /usr/local/nginx-dep/share/man/man3/pcre16_copy_substring.3
    ln -sf pcre_dfa_exec.3             /usr/local/nginx-dep/share/man/man3/pcre16_dfa_exec.3
    ln -sf pcre_exec.3             /usr/local/nginx-dep/share/man/man3/pcre16_exec.3
    ln -sf pcre_free_study.3         /usr/local/nginx-dep/share/man/man3/pcre16_free_study.3
    ln -sf pcre_free_substring.3         /usr/local/nginx-dep/share/man/man3/pcre16_free_substring.3
    ln -sf pcre_free_substring_list.3     /usr/local/nginx-dep/share/man/man3/pcre16_free_substring_list.3
    ln -sf pcre_fullinfo.3             /usr/local/nginx-dep/share/man/man3/pcre16_fullinfo.3
    ln -sf pcre_get_named_substring.3     /usr/local/nginx-dep/share/man/man3/pcre16_get_named_substring.3
    ln -sf pcre_get_stringnumber.3         /usr/local/nginx-dep/share/man/man3/pcre16_get_stringnumber.3
    ln -sf pcre_get_stringtable_entries.3     /usr/local/nginx-dep/share/man/man3/pcre16_get_stringtable_entries.3
    ln -sf pcre_get_substring.3         /usr/local/nginx-dep/share/man/man3/pcre16_get_substring.3
    ln -sf pcre_get_substring_list.3     /usr/local/nginx-dep/share/man/man3/pcre16_get_substring_list.3
    ln -sf pcre_jit_exec.3             /usr/local/nginx-dep/share/man/man3/pcre16_jit_exec.3
    ln -sf pcre_jit_stack_alloc.3         /usr/local/nginx-dep/share/man/man3/pcre16_jit_stack_alloc.3
    ln -sf pcre_jit_stack_free.3         /usr/local/nginx-dep/share/man/man3/pcre16_jit_stack_free.3
    ln -sf pcre_maketables.3         /usr/local/nginx-dep/share/man/man3/pcre16_maketables.3
    ln -sf pcre_pattern_to_host_byte_order.3 /usr/local/nginx-dep/share/man/man3/pcre16_pattern_to_host_byte_order.3
    ln -sf pcre_refcount.3             /usr/local/nginx-dep/share/man/man3/pcre16_refcount.3
    ln -sf pcre_study.3             /usr/local/nginx-dep/share/man/man3/pcre16_study.3
    ln -sf pcre_utf16_to_host_byte_order.3     /usr/local/nginx-dep/share/man/man3/pcre16_utf16_to_host_byte_order.3
    ln -sf pcre_version.3             /usr/local/nginx-dep/share/man/man3/pcre16_version.3
    ln -sf pcre_assign_jit_stack.3         /usr/local/nginx-dep/share/man/man3/pcre32_assign_jit_stack.3
    ln -sf pcre_compile.3             /usr/local/nginx-dep/share/man/man3/pcre32_compile.3
    ln -sf pcre_compile2.3             /usr/local/nginx-dep/share/man/man3/pcre32_compile2.3
    ln -sf pcre_config.3             /usr/local/nginx-dep/share/man/man3/pcre32_config.3
    ln -sf pcre_copy_named_substring.3     /usr/local/nginx-dep/share/man/man3/pcre32_copy_named_substring.3
    ln -sf pcre_copy_substring.3         /usr/local/nginx-dep/share/man/man3/pcre32_copy_substring.3
    ln -sf pcre_dfa_exec.3             /usr/local/nginx-dep/share/man/man3/pcre32_dfa_exec.3
    ln -sf pcre_exec.3             /usr/local/nginx-dep/share/man/man3/pcre32_exec.3
    ln -sf pcre_free_study.3         /usr/local/nginx-dep/share/man/man3/pcre32_free_study.3
    ln -sf pcre_free_substring.3         /usr/local/nginx-dep/share/man/man3/pcre32_free_substring.3
    ln -sf pcre_free_substring_list.3     /usr/local/nginx-dep/share/man/man3/pcre32_free_substring_list.3
    ln -sf pcre_fullinfo.3             /usr/local/nginx-dep/share/man/man3/pcre32_fullinfo.3
    ln -sf pcre_get_named_substring.3     /usr/local/nginx-dep/share/man/man3/pcre32_get_named_substring.3
    ln -sf pcre_get_stringnumber.3         /usr/local/nginx-dep/share/man/man3/pcre32_get_stringnumber.3
    ln -sf pcre_get_stringtable_entries.3     /usr/local/nginx-dep/share/man/man3/pcre32_get_stringtable_entries.3
    ln -sf pcre_get_substring.3         /usr/local/nginx-dep/share/man/man3/pcre32_get_substring.3
    ln -sf pcre_get_substring_list.3     /usr/local/nginx-dep/share/man/man3/pcre32_get_substring_list.3
    ln -sf pcre_jit_exec.3             /usr/local/nginx-dep/share/man/man3/pcre32_jit_exec.3
    ln -sf pcre_jit_stack_alloc.3         /usr/local/nginx-dep/share/man/man3/pcre32_jit_stack_alloc.3
    ln -sf pcre_jit_stack_free.3         /usr/local/nginx-dep/share/man/man3/pcre32_jit_stack_free.3
    ln -sf pcre_maketables.3         /usr/local/nginx-dep/share/man/man3/pcre32_maketables.3
    ln -sf pcre_pattern_to_host_byte_order.3 /usr/local/nginx-dep/share/man/man3/pcre32_pattern_to_host_byte_order.3
    ln -sf pcre_refcount.3             /usr/local/nginx-dep/share/man/man3/pcre32_refcount.3
    ln -sf pcre_study.3             /usr/local/nginx-dep/share/man/man3/pcre32_study.3
    ln -sf pcre_utf32_to_host_byte_order.3     /usr/local/nginx-dep/share/man/man3/pcre32_utf32_to_host_byte_order.3
    ln -sf pcre_version.3             /usr/local/nginx-dep/share/man/man3/pcre32_version.3
    make[3]: Leaving directory `/svr-setup/pcre-8.45'
    make[2]: Leaving directory `/svr-setup/pcre-8.45'
    make[1]: Leaving directory `/svr-setup/pcre-8.45'
    /svr-setup/nginx-1.23.3
     
  6. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
  7. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    Hi @eva2000
    Above are the server configuration details and log files. This is a new server, and I installed CentminMod yesterday. I can provide you with the Root server information if needed.

    Thanks.
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  9. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
  10. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    based on the initial install log you shared, the issue is DigitalOcean droplet using a older CPU model and/or isn't passing the CPU model's supported CPU flag/instructions to the KVM guest container/server. Which means the CPU in KVM droplet doesn't support CPU instructions required by PHP-FPM 8.1 compilation that Centmin Mod does
    The initial install log reports Illegal instruction errors at PHP-FPM 8.1.18 compile time.
    Code (Text):
    Generating phar.php
    /bin/sh: line 1: 13940 Illegal instruction     ` if test -x "/svr-setup/php-8.1.18/fpm-build/sapi/cli/php"; then /svr-setup/php-8.1.18/build/shtool echo -n -- "/svr-setup/php-8.1.18/fpm-build/sapi/cli/php -n"; if test "x" != "x"; then /svr-setup/php-8.1.18/build/shtool echo -n -- " -d extension_dir=/svr-setup/php-8.1.18/fpm-build/modules"; for i in bz2 zlib phar; do if test -f "/svr-setup/php-8.1.18/fpm-build/modules/$i.la"; then . /svr-setup/php-8.1.18/fpm-build/modules/$i.la; /svr-setup/php-8.1.18/build/shtool echo -n -- " -d extension=$dlname"; fi; done; fi; else /svr-setup/php-8.1.18/build/shtool echo -n -- "/svr-setup/php-8.1.18/fpm-build/sapi/cli/php"; fi;` -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d phar.readonly=0 /svr-setup/php-8.1.18/ext/phar/build_precommand.php > ext/phar/phar.php
    make: *** [ext/phar/phar.php] Error 132
    

    Did you set or modify any custom persistent config file override variables in /etc/centminmod/customconfig.inc ?

    did you set
    Code (Text):
    MARCH_TARGETNATIVE='y'
    

    On DigitalOcean, Centmin Mod usually defaults to MARCH_TARGETNATIVE='n' because of this very issue you have where VPS providers have varying ages of CPU models supporting different CPU flags/instructions and/or may not pass all CPU flags/instructions supported on newer CPU models so they can uniform/scale deployment of droplet/KVM virtualised servers.

    Post the contents of your persistent config file at /etc/centminmod/customconfig.inc minus/mask any sensitive values
     
  11. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    Did you set or modify any custom persistent config file override variables in /etc/centminmod/customconfig.inc ?
    => No i don't.

    [​IMG]

    Code:
    cat /etc/centminmod/customconfig.inc
    cat: /etc/centminmod/customconfig.inc: No such file or directory
    To address the issue, I need to switch to the CentminMod version that utilizes PHP 7 right.

    =

    I simply initialized a new server on DigitalOcean, logged in as root, and proceeded to install CentminMod without making any modifications to the settings.
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    On the same droplet, try reinstalling CentOS 7 OS and try with PHP 8.0 instead of PHP 8.1 and use 124.0stable installer Centmin Mod LEMP Stack Install Nginx on CentOS
    Code (Text):
    yum -y update; curl -O https://centminmod.com/installer80.sh && chmod 0700 installer80.sh && bash installer80.sh
    

    If that doesn't work, try 130.00beta01 installer with PHP 8.0
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller80.sh && chmod 0700 betainstaller80.sh && bash betainstaller80.sh
    
     
  13. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    I reinstalled using PHP 8.0 instead of PHP 8.1 and used version 124.0stable. Everything seemed fine, and then I proceeded to import the database and source code. However, I encountered an error as shown in the image below.
    [​IMG]
    These are the domain error log files, and from what I read on Google, it seems that someone has continuously spammed my website, resulting in this error.

    Code:
    2023/05/21 02:56:27 [error] 65085#65085: *1671 open() "/home/nginx/domains/d.com/public/favicon.ico" failed (2: No such file or directory), client: 172.71.218.30, server: d.com, request: "GET /favicon.ico HTTP/2.0", host: "d.com", referrer: "https://d.com/"
    2023/05/21 03:03:58 [error] 65085#65085: *1683 access forbidden by rule, client: 172.71.218.63, server: d.com, request: "GET /wp-content/cong.php HTTP/1.1", host: "d.com", referrer: "http://simplesite.com"
    2023/05/21 03:04:03 [error] 65085#65085: *1684 access forbidden by rule, client: 172.71.210.253, server: d.com, request: "GET /wp-content/cong.php HTTP/1.1", host: "d.com", referrer: "http://simplesite.com"
    2023/05/21 03:06:14 [error] 65085#65085: *1685 access forbidden by rule, client: 172.71.182.222, server: d.com, request: "POST /xmlrpc.php HTTP/2.0", host: "d.com"
    2023/05/21 03:15:05 [error] 1663#1663: *11 access forbidden by rule, client: 172.71.167.118, server: d.com, request: "GET /wp-content/plugins/wp-daft/miin.php HTTP/1.1", host: "d.com"
    2023/05/21 03:15:10 [error] 1663#1663: *12 access forbidden by rule, client: 172.71.167.152, server: d.com, request: "GET //wp-content/plugins/wordpress-three/miin.php HTTP/1.1", host: "d.com"
    2023/05/21 03:15:15 [error] 1663#1663: *12 access forbidden by rule, client: 172.71.167.152, server: d.com, request: "GET //wp-content/plugins/column/miin.php HTTP/1.1", host: "d.com"
    2023/05/21 03:17:23 [error] 1663#1663: *22 access forbidden by rule, client: 162.158.126.194, server: d.com, request: "POST /xmlrpc.php HTTP/2.0", host: "d.com"
    
    Note :
    The file "cong.php" does not exist on my server.


    Code:
    2023/05/21 03:17:23 [error] 1663#1663: *22 access forbidden by rule, client: 162.158.126.194, server: d.com, request: "POST /xmlrpc.php HTTP/2.0", host: "d.com"
    
    
    @eva2000 Do you have any advice for me in this situation?
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,919
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    8:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    those are Cloudflare IPs https://tools.keycdn.com/geo?host=172.71.167.118 so you haven't enabled cloudflare.conf include file in nginx vhost config files to resolve real IPs when site is behind Cloudflare. See Getting Started Guide step 5 Getting Started Guide - CentminMod.com LEMP Nginx web stack for CentOS which leads to Nginx Cloudflare, AWS Cloudfront & Incapsula (reverse proxy HttpRealIpModule) - CentminMod.com LEMP Nginx web stack for CentOS

    I doubt that is related to Wordpress error though.
     
  15. jacknguyen

    jacknguyen Member

    39
    6
    8
    Jun 3, 2022
    Ratings:
    +9
    Local Time:
    6:07 PM
    1.5
    10
    I have enabled the "cloudflare.conf" include file in the Nginx virtual host configuration files, but the issue has not been resolved.