Discover Centmin Mod today
Register Now

WP sites not running on CentOS 6 anymore

Discussion in 'Blogs & CMS usage' started by GASTAN, Dec 19, 2023.

  1. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    Hi,
    I am getting error on all the (WP)websites on CentOS 6 server :

    Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0".

    I tried to update PHP to all the higher versions including 7.2 but it always fails.


    Any idea what to do?
     
  2. eva2000

    eva2000 Administrator Staff Member

    51,248
    11,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,374
    Local Time:
    10:16 AM
    Nginx 1.25.x
    MariaDB 10.x
    CentOS 6.x OS was end of life (EOL) along time ago. Where are you getting that Composer error message?

    Google search gives alot of results here

    might be a specific wordpress plugin related WordPress site is down. Probably need to update php but can’t log on to update ?

    You can check your Wordpress install's WP plugins installed via SSH command line
    Code (Text):
    cd /home/nginx/domains/yourdomain.com/public
    wp plugin list --allow-root
    

    and deactivate the problematic WP plugin
    Code (Text):
    cd /home/nginx/domains/yourdomain.com/public
    wp plugin deactivate PLUGINNAME --allow-root
    


    what always fails, PHP 7.2 upgrade? That is because CentOS 6 is EOL and probably wget or curl isn't working anymore and might need manual download to /svr-setup directory before PHP 7.2 upgrade. Might want to share PHP upgrade log if it's failing to update https://community.centminmod.com/threads/how-to-troubleshoot-php-installs-upgrades.17857/

    But probably best to move to a AlmaLinux 8 based server with Centmin Mod 130.00beta01
     
  3. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    Thanks. Any other PHP version above 5.60 fails. I want to update server, but would like to revive sites in a meanwhile.
     
  4. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    wp plugin list --allow-root
    returns these errors:
    PHP Warning: Cannot load module 'redis' because required module 'igbinary' is not loaded in Unknown on line 0
    PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40. in /home/nginx/domains/domain1/public/wp-content/plugins/backupbuddy/vendor/composer/platform_check.php on line 25
    Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.2.0". You are running 5.6.40. in /home/nginx/domains/domain1/public/wp-content/plugins/backupbuddy/vendor/composer/platform_check.php on line 25
    Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

    but at least gave me a hint about what plugin is crashing.
    I then manually renamed the directory and site worked.

    I am going to check if I can get PHP7 compiled

    thx
     
  5. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    I tried to update to 7.3.33 and got these errors:
    Code:
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    make: *** [argon2] Error 1
    make: *** Waiting for unfinished jobs....
    make: *** [libargon2.so.1] Error 1
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    make: *** [src/argon2.o] Error 1
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    make: *** [src/blake2/blake2b.o] Error 1
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    make: *** [src/core.o] Error 1
    Building without optimizations
    ccache /opt/rh/devtoolset-9/root/usr/bin/gcc -O2 -m32 -mtune=generic -pipe -std=c89 -O3 -Wall -g -Iinclude -Isrc -pthread  src/argon2.c src/core.c src/blake2/blake2b.c src
    /thread.c src/encoding.c src/ref.c src/run.c -o argon2
    ccache: error: execv of /opt/rh/devtoolset-9/root/usr/bin/gcc failed: No such file or directory
    
    so that's no good, I guess some devtoolset 9 is missing , but I didnt know how to install it on centos 6

    and for 7.2.0 I got this

    Code:
    PHPMUVER = 7.2
    PHP_PGO = n
    make -j4
    /svr-setup/php-7.2.0/ext/curl/interface.c: In function <E2><80><98>_php_curl_setopt<E2><80><99>:
    /svr-setup/php-7.2.0/ext/curl/interface.c:2792: warning: call to <E2><80><98>_curl_easy_setopt_err_progress_cb<E2><80><99> declared with attribute warning: curl_easy_setop
    t expects a curl_progress_callback argument for this option
    /svr-setup/php-7.2.0/ext/dom/dom_iterators.c: In function <E2><80><98>php_dom_libxml_hash_iter<E2><80><99>:
    /svr-setup/php-7.2.0/ext/dom/dom_iterators.c:94: warning: passing argument 2 of <E2><80><98>xmlHashScan<E2><80><99> from incompatible pointer type
    /usr/include/libxml2/libxml/hash.h:212: note: expected <E2><80><98>xmlHashScanner<E2><80><99> but argument is of type <E2><80><98>void (*)(void *, void *, xmlChar *)<E2>
    <80><99>
    /svr-setup/php-7.2.0/ext/dom/dom_iterators.c: In function <E2><80><98>php_dom_libxml_notation_iter<E2><80><99>:
    /svr-setup/php-7.2.0/ext/dom/dom_iterators.c:115: warning: passing argument 2 of <E2><80><98>xmlHashScan<E2><80><99> from incompatible pointer type
    /usr/include/libxml2/libxml/hash.h:212: note: expected <E2><80><98>xmlHashScanner<E2><80><99> but argument is of type <E2><80><98>void (*)(void *, void *, xmlChar *)<E2>
    <80><99>
    /svr-setup/php-7.2.0/ext/snmp/snmp.c: In function <E2><80><98>zm_startup_snmp<E2><80><99>:
    /svr-setup/php-7.2.0/ext/snmp/snmp.c:2323: warning: assignment from incompatible pointer type
    /svr-setup/php-7.2.0/sapi/fpm/fpm/fpm_scoreboard.c:252: error: conflicting types for <E2><80><98>fpm_scoreboard_free<E2><80><99>
    /svr-setup/php-7.2.0/sapi/fpm/fpm/fpm_scoreboard.h:84: note: previous declaration of <E2><80><98>fpm_scoreboard_free<E2><80><99> was here
    /svr-setup/php-7.2.0/sapi/fpm/fpm/fpm_scoreboard.c:268: error: conflicting types for <E2><80><98>fpm_scoreboard_child_use<E2><80><99>
    /svr-setup/php-7.2.0/sapi/fpm/fpm/fpm_scoreboard.h:86: note: previous declaration of <E2><80><98>fpm_scoreboard_child_use<E2><80><99> was here
    make: *** [sapi/fpm/fpm/fpm_scoreboard.lo] Error 1
    
    no idea what's that

    the server is with ramnode and they have Alma8, even Alma9..., but I need to make sites work temporarily, before moving to new server
     
  6. eva2000

    eva2000 Administrator Staff Member

    51,248
    11,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,374
    Local Time:
    10:16 AM
    Nginx 1.25.x
    MariaDB 10.x
    So composer is used by BackupBuddy WP plugin which is where PHP 7.2+ requirement and your error is coming from. So if you use WP CLI command above to temporarily disable/deactivate BackupBuddy WP plugin, you should be able to get the site back online for now.

    Strange should be that devtoolset-9 GCC wouldn't even run if it doesn't exist

    What does the output for this command output - wrap in CODE/CODEB tags
    Code (Text):
    rpm -qa | grep devtoolset-9
    

    should be something like below for installed RPMs
    Code (Text):
    rpm -qa | grep devtoolset-9
    devtoolset-9-libstdc++-devel-9.1.1-2.5.el6.x86_64
    devtoolset-9-runtime-9.0-1.el6.x86_64
    devtoolset-9-binutils-2.32-14.el6.x86_64
    devtoolset-9-gcc-9.1.1-2.5.el6.x86_64
    devtoolset-9-gcc-c++-9.1.1-2.5.el6.x86_64
    

    If they don't exist, you can try downloading the devtoolset-9 GCC RPMs for EL6 manually using below commands as the Repo probably is EOL gone now that CentOS 6 is EOL.
    Code (Text):
    # disable wget certificate checks on CentOS 6 as system openssl version is EOL and system CA certs are out of date
    echo 'check_certificate = off' > /root/.wgetrc
    # download devtoolset-9 RPMs for GCC 9 for CentOS 6
    mkdir -p /svr-setup/devtoolset9
    cd /svr-setup/devtoolset9
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-c++-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-gdb-plugin-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-gfortran-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-plugin-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libasan-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libatomic-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libgccjit-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libgccjit-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libgccjit-docs-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libitm-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-liblsan-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libquadmath-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libstdc++-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libstdc++-docs-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libtsan-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-libubsan-devel-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/libasan5-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/liblsan-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/libubsan1-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-gcc/9.1.1/2.5.el6/x86_64/devtoolset-9-gcc-debuginfo-9.1.1-2.5.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/x86_64/devtoolset-9-9.0-1.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/x86_64/devtoolset-9-build-9.0-1.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/x86_64/devtoolset-9-perftools-9.0-1.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/x86_64/devtoolset-9-runtime-9.0-1.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/x86_64/devtoolset-9-toolchain-9.0-1.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9/9.0/1.el6/src/devtoolset-9-9.0-1.el6.src.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-binutils/2.32/14.el6/x86_64/devtoolset-9-binutils-2.32-14.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-binutils/2.32/14.el6/x86_64/devtoolset-9-binutils-devel-2.32-14.el6.x86_64.rpm
    wget https://cbs.centos.org/kojifiles/packages/devtoolset-9-binutils/2.32/14.el6/x86_64/devtoolset-9-binutils-debuginfo-2.32-14.el6.x86_64.rpm
    # install devtoolset-9 GCC 9 on CentOS 6
    yum -y localinstall devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils devtoolset-9-runtime
    
     
  7. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    I got
    Code:
    yum -y localinstall devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils devtoolset-9-runtime
    Loaded plugins: fastestmirror, priorities, security, versionlock
    Setting up Local Package Process
    Skipping: devtoolset-9-gcc, filename does not end in .rpm.
    Skipping: devtoolset-9-gcc-c++, filename does not end in .rpm.
    Skipping: devtoolset-9-binutils, filename does not end in .rpm.
    Skipping: devtoolset-9-runtime, filename does not end in .rpm.
    Nothing to do
    
    and upon trying install rpm directly it said

    Code:
     yum -y localinstall devtoolset-9-gcc-9.1.1-2.5.el6.x86_64.rpm
    Loaded plugins: fastestmirror, priorities, security, versionlock
    Setting up Local Package Process
    Examining devtoolset-9-gcc-9.1.1-2.5.el6.x86_64.rpm: devtoolset-9-gcc-9.1.1-2.5.el6.x86_64
    Cannot add package devtoolset-9-gcc-9.1.1-2.5.el6.x86_64.rpm to transaction. Not a compatible architecture: x86_64
    Nothing to do
    
    
    I have 3.10.0-957.12.2.vz7.96.21 #1 SMP Thu Jun 27 15:10:55 MSK 2019 i686 i686 i386 GNU/Linux
    so I guess it's 32bit

    is it possible to get it in 32it? that kojifiles only seem to have 64bit archives?
     
  8. eva2000

    eva2000 Administrator Staff Member

    51,248
    11,900
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,374
    Local Time:
    10:16 AM
    Nginx 1.25.x
    MariaDB 10.x
    I don't think I've seen a 32bit devtoolset RPM package on CentOS 6. What output do you get from
    Code (Text):
    rpm -qa | grep devtoolset
    

    I think in your case, probably best to disable BackupBuddy WP plugin to get around composer PHP 7.2+ requirement and then migrate sites and data to new AlmaLinux 8 based Centmin Mod server.
     
  9. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    I get this
    Code:
    # rpm -qa | grep devtoolset
    devtoolset-3-runtime-3.0-15.el6.noarch
    devtoolset-3-libstdc++-devel-4.9.1-10.el6.i686
    devtoolset-3-gcc-c++-4.9.1-10.el6.i686
    devtoolset-3-gcc-4.9.1-10.el6.i686
    devtoolset-3-binutils-2.24-18.el6.i686
    
    that's 32 bit, innit?
    I am getting new machine soon, so will try to migrate to it, but was hoping I can keep it afloat in a meanwhile :(
     
  10. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    I found this repo:
    Index of /cloudlinux/6/sclo/devtoolset-9/i386/
    and tried to install from there
    but still some stuff is missing :(

    Code:
    --> Finished Dependency Resolution
    Error: Package: devtoolset-9-toolchain-9.0-1.el6.i686 (cloudlinux)
               Requires: devtoolset-9-gdb
    Error: Package: devtoolset-9-gcc-gfortran-9.1.1-2.5.el6.i686 (cloudlinux)
               Requires: libgfortran5 >= 8.1.1
    Error: Package: devtoolset-9-perftools-9.0-1.el6.i686 (cloudlinux)
               Requires: devtoolset-9-systemtap
    
     
  11. GASTAN

    GASTAN Member

    103
    12
    18
    Jun 28, 2017
    Ratings:
    +18
    Local Time:
    1:16 AM
    oh, I did
    Code:
     yum --disablerepo=\* --enablerepo=cloudlinux install devtoolset-9
    and it installer devtoolset-9
    but it's all red now:

    Code:
    # rpm -qa | grep devtoolset
    devtoolset-9-runtime-9.0-1.el6.i686
    devtoolset-3-runtime-3.0-15.el6.noarch
    devtoolset-3-libstdc++-devel-4.9.1-10.el6.i686
    devtoolset-3-gcc-c++-4.9.1-10.el6.i686
    devtoolset-9-gcc-9.1.1-2.5.el6.i686
    devtoolset-3-gcc-4.9.1-10.el6.i686
    devtoolset-9-binutils-2.32-14.el6.i686
    devtoolset-3-binutils-2.24-18.el6.i686
    
    gonna try to compile PHP, but feel like something is off