Broken installation after update from PHP 7.2.24 to 7.4.10 on Centos 3.10.0-1127.19.1.el7.x86_64

Running Centos 3.10.0-1127.19.1.el7.x86_64. Did the Nexcloud update from 18 to 19 without issues. Then it mentions I need to update to PHP 7.3 minimum to get all security features.

So I run:
rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum-config-manager --enable remi-php74

yum install httpd php php-dom php-mbstring php-gd php-pdo php-json php-xml php-zip php-curl php-pear php-intl php-bcmath php-gmp setroubleshoot-server bzip2 php-pecl-imagick

After install I get a bunch of errors from PHP…

Package httpd-2.4.6-93.el7.centos.x86_64 already installed and latest version
Package setroubleshoot-server-3.2.30-8.el7.x86_64 already installed and latest version
Package bzip2-1.0.6-13.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:7.4.10-1.el7.remi will be installed
--> Processing Dependency: php-cli(x86-64) = 7.4.10-1.el7.remi for package: php-7.4.10-1.el7.remi.x86_64
--> Processing Dependency: php-sodium(x86-64) = 7.4.10-1.el7.remi for package: php-7.4.10-1.el7.remi.x86_64
---> Package php-bcmath.x86_64 0:5.4.16-48.el7 will be updated
---> Package php-bcmath.x86_64 0:7.4.10-1.el7.remi will be an update
---> Package php-common.x86_64 0:5.4.16-48.el7 will be updated
--> Processing Dependency: php(api) = 20100412-64 for package: php-tidy-5.4.16-9.el7.x86_64
--> Processing Dependency: php(zend-abi) = 20100525-64 for package: php-tidy-5.4.16-9.el7.x86_64
--> Processing Dependency: php-common(x86-64) = 5.4.16-48.el7 for package: php-process-5.4.16-48.el7.x86_64
---> Package php-common.x86_64 0:7.4.10-1.el7.remi will be an update
---> Package php-gd.x86_64 0:5.4.16-48.el7 will be updated
---> Package php-gd.x86_64 0:7.4.10-1.el7.remi will be an update
--> Processing Dependency: gd-last(x86-64) >= 2.1.1 for package: php-gd-7.4.10-1.el7.remi.x86_64
--> Processing Dependency: libgd.so.3()(64bit) for package: php-gd-7.4.10-1.el7.remi.x86_64
---> Package php-gmp.x86_64 0:7.4.10-1.el7.remi will be installed
---> Package php-intl.x86_64 0:7.4.10-1.el7.remi will be installed
--> Processing Dependency: libicudata.so.65()(64bit) for package: php-intl-7.4.10-1.el7.remi.x86_64
--> Processing Dependency: libicui18n.so.65()(64bit) for package: php-intl-7.4.10-1.el7.remi.x86_64
--> Processing Dependency: libicuio.so.65()(64bit) for package: php-intl-7.4.10-1.el7.remi.x86_64
--> Processing Dependency: libicuuc.so.65()(64bit) for package: php-intl-7.4.10-1.el7.remi.x86_64
---> Package php-json.x86_64 0:7.4.10-1.el7.remi will be installed
---> Package php-mbstring.x86_64 0:5.4.16-48.el7 will be updated
---> Package php-mbstring.x86_64 0:7.4.10-1.el7.remi will be an update
--> Processing Dependency: libonig.so.105()(64bit) for package: php-mbstring-7.4.10-1.el7.remi.x86_64
---> Package php-pdo.x86_64 0:5.4.16-48.el7 will be updated
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-48.el7 for package: php-mysql-5.4.16-48.el7.x86_64
---> Package php-pdo.x86_64 0:7.4.10-1.el7.remi will be an update
---> Package php-pear.noarch 1:1.10.12-1.el7.remi will be installed
---> Package php-pecl-imagick.x86_64 0:3.4.4-10.el7.remi.7.4 will be installed
---> Package php-pecl-zip.x86_64 0:1.19.0-1.el7.remi.7.4 will be installed
--> Processing Dependency: libzip5(x86-64) >= 1.7.0 for package: php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64
--> Processing Dependency: libzip.so.5()(64bit) for package: php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64
---> Package php-xml.x86_64 0:5.4.16-48.el7 will be updated
---> Package php-xml.x86_64 0:7.4.10-1.el7.remi will be an update
--> Running transaction check
---> Package gd-last.x86_64 0:2.3.0-2.el7.remi will be installed
--> Processing Dependency: libraqm.so.0()(64bit) for package: gd-last-2.3.0-2.el7.remi.x86_64
--> Processing Dependency: libwebp.so.7()(64bit) for package: gd-last-2.3.0-2.el7.remi.x86_64
---> Package libicu65.x86_64 0:65.1-1.el7.remi will be installed
---> Package libzip5.x86_64 0:1.7.3-1.el7.remi will be installed
---> Package oniguruma5php.x86_64 0:6.9.5+rev1-2.el7.remi will be installed
---> Package php-cli.x86_64 0:7.4.10-1.el7.remi will be installed
---> Package php-mysql.x86_64 0:5.4.16-48.el7 will be obsoleted
---> Package php-mysqlnd.x86_64 0:7.4.10-1.el7.remi will be obsoleting
---> Package php-process.x86_64 0:5.4.16-48.el7 will be updated
---> Package php-process.x86_64 0:7.4.10-1.el7.remi will be an update
---> Package php-sodium.x86_64 0:7.4.10-1.el7.remi will be installed
--> Processing Dependency: libsodium.so.23()(64bit) for package: php-sodium-7.4.10-1.el7.remi.x86_64
---> Package php-tidy.x86_64 0:5.4.16-9.el7 will be updated
---> Package php-tidy.x86_64 0:7.4.10-1.el7.remi will be an update
--> Processing Dependency: libtidy.so.5()(64bit) for package: php-tidy-7.4.10-1.el7.remi.x86_64
--> Running transaction check
---> Package libraqm.x86_64 0:0.7.0-4.el7 will be installed
---> Package libsodium.x86_64 0:1.0.18-1.el7 will be installed
---> Package libtidy.x86_64 0:5.4.0-1.el7 will be installed
---> Package libwebp7.x86_64 0:1.0.3-1.el7.remi will be installed
--> Finished Dependency Resolution

Warning: RPMDB altered outside of yum.
  Updating   : php-common-7.4.10-1.el7.remi.x86_64                                        1/35 
  Installing : php-json-7.4.10-1.el7.remi.x86_64                                          2/35 
  Installing : php-cli-7.4.10-1.el7.remi.x86_64                                           3/35 
  Updating   : php-xml-7.4.10-1.el7.remi.x86_64                                           4/35 
  Updating   : php-pdo-7.4.10-1.el7.remi.x86_64                                           5/35 
  Updating   : php-process-7.4.10-1.el7.remi.x86_64                                       6/35 
  Installing : libwebp7-1.0.3-1.el7.remi.x86_64                                           7/35 
  Installing : oniguruma5php-6.9.5+rev1-2.el7.remi.x86_64                                 8/35 
  Installing : libtidy-5.4.0-1.el7.x86_64                                                 9/35 
  Installing : libraqm-0.7.0-4.el7.x86_64                                                10/35 
  Installing : gd-last-2.3.0-2.el7.remi.x86_64                                           11/35 
  Installing : libsodium-1.0.18-1.el7.x86_64                                             12/35 
  Installing : php-sodium-7.4.10-1.el7.remi.x86_64                                       13/35 
  Installing : libzip5-1.7.3-1.el7.remi.x86_64                                           14/35 
  Installing : libicu65-65.1-1.el7.remi.x86_64                                           15/35 
  Installing : php-intl-7.4.10-1.el7.remi.x86_64                                         16/35 
  Installing : php-pecl-zip-1.19.0-1.el7.remi.7.4.x86_64                                 17/35 
  Installing : php-7.4.10-1.el7.remi.x86_64                                              18/35 
  Updating   : php-gd-7.4.10-1.el7.remi.x86_64                                           19/35 
  Updating   : php-tidy-7.4.10-1.el7.remi.x86_64                                         20/35 
  Updating   : php-mbstring-7.4.10-1.el7.remi.x86_64                                     21/35 
  Installing : 1:php-pear-1.10.12-1.el7.remi.noarch                                      22/35 
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysqli.so' (tried: /usr/lib64/php/modules/mysqli.so (/usr/lib64/php/modules/mysqli.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysqli.so.so (/usr/lib64/php/modules/mysqli.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib64/php/modules/pdo_mysql.so (/usr/lib64/php/modules/pdo_mysql.so: undefined symbol: _zval_copy_ctor_func), /usr/lib64/php/modules/pdo_mysql.so.so (/usr/lib64/php/modules/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0
  Installing : php-mysqlnd-7.4.10-1.el7.remi.x86_64                                      23/35 
  Installing : php-pecl-imagick-3.4.4-10.el7.remi.7.4.x86_64                             24/35 
PHP Warning:  PHP Startup: Unable to load dynamic library 'bcmath.so' (tried: /usr/lib64/php/modules/bcmath.so (/usr/lib64/php/modules/bcmath.so: undefined symbol: php_error_docref0), /usr/lib64/php/modules/bcmath.so.so (/usr/lib64/php/modules/bcmath.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'dom' already loaded in Unknown on line 0
PHP Warning:  Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'json' already loaded in Unknown on line 0
PHP Warning:  Module 'mbstring' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mysql.so' (tried: /usr/lib64/php/modules/mysql.so (/usr/lib64/php/modules/mysql.so: undefined symbol: _zval_ptr_dtor), /usr/lib64/php/modules/mysql.so.so (/usr/lib64/php/modules/mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'mysqli' already loaded in Unknown on line 0
PHP Warning:  Module 'PDO' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning:  Module 'Phar' already loaded in Unknown on line 0
PHP Warning:  Module 'posix' already loaded in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning:  Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning:  Module 'tidy' already loaded in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'wddx.so' (tried: /usr/lib64/php/modules/wddx.so (/usr/lib64/php/modules/wddx.so: undefined symbol: _zend_hash_index_update_or_next_insert), /usr/lib64/php/modules/wddx.so.so (/usr/lib64/php/modules/wddx.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning:  Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning:  Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning:  Module 'xsl' already loaded in Unknown on line 0
PHP Warning:  Module 'zip' already loaded in Unknown on line 0

php -v

PHP 7.4.10 (cli) (built: Sep  1 2020 13:58:08) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

Appears the old install is still giving conflict and was not removed.

[root@localhost ~]# yum list installed | grep -i php
Failed to set locale, defaulting to C
oniguruma5php.x86_64                   6.9.5+rev1-2.el7.remi     @remi-safe     
php.x86_64                             7.4.10-1.el7.remi         @remi-php74    
php-bcmath.x86_64                      7.4.10-1.el7.remi         @remi-php74    
php-cli.x86_64                         7.4.10-1.el7.remi         @remi-php74    
php-common.x86_64                      7.4.10-1.el7.remi         @remi-php74    
php-fedora-autoloader.noarch           1.0.1-2.el7               @epel          
php-gd.x86_64                          7.4.10-1.el7.remi         @remi-php74    
php-gmp.x86_64                         7.4.10-1.el7.remi         @remi-php74    
php-intl.x86_64                        7.4.10-1.el7.remi         @remi-php74    
php-json.x86_64                        7.4.10-1.el7.remi         @remi-php74    
php-mbstring.x86_64                    7.4.10-1.el7.remi         @remi-php74    
php-mysqlnd.x86_64                     7.4.10-1.el7.remi         @remi-php74    
php-pdo.x86_64                         7.4.10-1.el7.remi         @remi-php74    
php-pear.noarch                        1:1.10.12-1.el7.remi      @remi-php74    
php-pecl-imagick.x86_64                3.4.4-10.el7.remi.7.4     @remi-php74    
php-pecl-zip.x86_64                    1.19.0-1.el7.remi.7.4     @remi-php74    
php-php-gettext.noarch                 1.0.12-1.el7              @epel          
php-process.x86_64                     7.4.10-1.el7.remi         @remi-php74    
php-sodium.x86_64                      7.4.10-1.el7.remi         @remi-php74    
php-tcpdf.noarch                       6.2.26-1.el7              @epel          
php-tcpdf-dejavu-sans-fonts.noarch     6.2.26-1.el7              @epel          
php-tidy.x86_64                        7.4.10-1.el7.remi         @remi-php74    
php-xml.x86_64                         7.4.10-1.el7.remi         @remi-php74    
phpMyAdmin.noarch                      4.4.15.10-4.el7           @epel          
rh-php72.x86_64                        1-2.el7                   @centos-sclo-rh
rh-php72-php.x86_64                    7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-cli.x86_64                7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-common.x86_64             7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-gd.x86_64                 7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-intl.x86_64               7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-json.x86_64               7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-mbstring.x86_64           7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-mysqlnd.x86_64            7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-opcache.x86_64            7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-pdo.x86_64                7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-pear.noarch               1:1.10.5-1.el7            @centos-sclo-rh
rh-php72-php-pecl-apcu.x86_64          5.1.12-1.el7              @centos-sclo-rh
rh-php72-php-process.x86_64            7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-xml.x86_64                7.2.24-1.el7              @centos-sclo-rh
rh-php72-php-zip.x86_64                7.2.24-1.el7              @centos-sclo-rh
rh-php72-runtime.x86_64                1-2.el7                   @centos-sclo-rh
sclo-php72-php-pecl-igbinary.x86_64    2.0.8-1.el7               @centos-sclo-sclo
sclo-php72-php-pecl-imagick.x86_64     3.4.4-3.el7               @centos-sclo-sclo
sclo-php72-php-pecl-redis4.x86_64      4.3.0-1.el7               @centos-sclo-sclo

Removed the 7.2 packages but does not seem to change much…

Ok I managed to discover that if I comment out the following lines in config.php it seems to work.

  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'redis' => 
  array (
'host' => 'localhost',
'port' => 6379,
  ),

I reinstalled and updated redis but it does not solve my issue? Any ideas? THX!

I think it has nothing to do with Nextcloud. Default CentOS repos got their own PHP versions. You also installed 7.2 version from Remi repo (but i do not know what method You have used for that earlier).
You also didn’t sat what PHP acess method Your httpd is using (mod_php, fcgi, php-fpm ?).
If i was on Your place i would remove every PHP package from OS, and install newest 7.4.10 as default one. Then in the future try to use “Multiple versions” feature of Remi PHP versions, so they will be installed in separate directories, and got own names like php74 (so You will just add php785 for example, and make httpd use it instead of php74).

Hi,

I removed and reinstalled 7.3 via remi repo. But the problem still persists. When I remove PHP i can get to the welcome test 123 page from apache. When I install PHP I get an error. I got the error logs from apache below. Could one of these errors be causing this?

Apache:

[Sun Sep 13 20:08:34.705024 2020] [core:notice] [pid 5667] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sun Sep 13 20:08:34.706022 2020] [suexec:notice] [pid 5667] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Sep 13 20:08:34.706959 2020] [ssl:warn] [pid 5667] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Sun Sep 13 20:08:34.729572 2020] [lbmethod_heartbeat:notice] [pid 5667] AH02282: No slotmem from mod_heartmonitor
[Sun Sep 13 20:08:34.730533 2020] [ssl:warn] [pid 5667] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
PHP Warning:  Module 'apcu' already loaded in Unknown on line 0
[Sun Sep 13 20:08:34.765617 2020] [mpm_prefork:notice] [pid 5667] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.22 configured -- resuming normal operations
[Sun Sep 13 20:08:34.765650 2020] [core:notice] [pid 5667] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

This is the log from Nextcloud, it mentions connection issues with the database but I never changed this so it seems odd this could be the issue.

{"reqId":"X15n9dBUek4QXu47W@XFfAAAAAA","level":3,"time":"2020-09-13T18:41:57+00:00","remoteAddr":"192.168.1.1","user":"--","app":"index","method":"GET","url":"/","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":883,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":665,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1704,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":856,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":163,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1894,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":347,"function":"getAppManager","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":114,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":648,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1095,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/index.php","line":35,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X15n9dBUek4QXu47W@XFfAAAAAA","level":3,"time":"2020-09-13T18:41:57+00:00","remoteAddr":"192.168.1.1","user":"--","app":"core","method":"GET","url":"/","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":883,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":665,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1704,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":856,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":163,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1894,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":347,"function":"getAppManager","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":114,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":648,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1095,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/index.php","line":35,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"X15n9dBUek4QXu47W@XFfAAAAAA","level":3,"time":"2020-09-13T18:41:57+00:00","remoteAddr":"192.168.1.1","user":"--","app":"core","method":"GET","url":"/","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":883,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"/var/www/html/nextcloud/lib/private/TemplateLayout.php","line":164,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php","line":185,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["error",""]},{"file":"/var/www/html/nextcloud/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_Template.php","line":334,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/nextcloud/index.php","line":63,"function":"printExceptionErrorPage","class":"OC_Template","type":"::","args":[{"__class__":"Doctrine\\DBAL\\DBALException"},500]}],"File":"/var/www/html/nextcloud/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0","version":"19.0.3.1"}
{"reqId":"n8oF2zlJhoSVX11vWhZl","level":3,"time":"2020-09-13T18:42:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Module 'apcu' already loaded at Unknown#0","userAgent":"--","version":"19.0.3.1"}
{"reqId":"72u9zPZWBn6Rc3mSoXLQ","level":3,"time":"2020-09-13T18:42:02+00:00","remoteAddr":"","user":"--","app":"cron","method":"","url":"--","message":{"Exception":"Doctrine\\DBAL\\DBALException","Message":"Failed to connect to the database: An exception occurred in driver: could not find driver","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Connection.php","line":889,"function":"connect","class":"OC\\DB\\Connection","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":194,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[],null]},{"file":"/var/www/html/nextcloud/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Query/QueryBuilder.php","line":200,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->","args":["SELECT * FROM `oc_appconfig`",[],[]]},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":216,"function":"execute","class":"Doctrine\\DBAL\\Query\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":331,"function":"execute","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":109,"function":"loadConfigValues","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/AppConfig.php","line":287,"function":"getApps","class":"OC\\AppConfig","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":883,"function":"getValues","class":"OC\\AppConfig","type":"->","args":[false,"installed_version"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":665,"function":"getAppVersions","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1704,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Memcache\\Factory"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":856,"function":"getMemCacheFactory","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":118,"function":"OC\\{closure}","class":"OC\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":163,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\App\\AppManager"]},{"file":"/var/www/html/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php","line":114,"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":124,"function":"offsetGet","class":"Pimple\\Container","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/Server.php","line":1894,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCP\\App\\IAppManager"]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":347,"function":"getAppManager","class":"OC\\Server","type":"->","args":[]},{"file":"/var/www/html/nextcloud/lib/private/legacy/OC_App.php","line":114,"function":"getEnabledApps","class":"OC_App","type":"::","args":[]},{"file":"/var/www/html/nextcloud/lib/base.php","line":648,"function":"loadApps","class":"OC_App","type":"::","args":[["session"]]},{"file":"/var/www/html/nextcloud/lib/base.php","line":1095,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/nextcloud/cron.php","line":42,"args":["/var/www/html/nextcloud/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/DB/Connection.php","Line":67,"CustomMessage":"--"},"userAgent":"--","version":"19.0.3.1"}
{"reqId":"72u9zPZWBn6Rc3mSoXLQ","level":3,"time":"2020-09-13T18:42:02+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"Module 'apcu' already loaded at Unknown#0","userAgent":"--","version":"19.0.3.1"}
  1. Disable SELinux, it may be problemativc.
  2. Show Your .conf file of httpd that You use for Nextcloud.
  3. After removing PHP was there any php left (php -v from command line worked or not?)
  4. Do You use php-fpm, fcgi or mod_php?
  5. What show error.log of Apache?
    6.What modules have You installed for php?

Thanks for your reply,

  1. Disable SELinux, it may be problemativc.

  2. Show Your .conf file of httpd that You use for Nextcloud.

    ServerName xxxx.ddns.net Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains" ServerAdmin YOUR@EMAIL.TLD DocumentRoot /var/www/html/nextcloud Require all granted AllowOverride All Options FollowSymLinks MultiViews SetEnv HOME /var/www/html/nextcloud SetEnv HTTP_HOME /var/www/html/nextcloud Include /etc/letsencrypt/options-ssl-apache.conf SSLCertificateFile /etc/letsencrypt/live/xxxx.ddns.net/cert.pem SSLCertificateKeyFile /etc/letsencrypt/live/xxxx.ddns.net/privkey.pem SSLCertificateChainFile /etc/letsencrypt/live/xxxx.ddns.net/chain.pem
  3. After removing PHP was there any php left (php -v from command line worked or not?)

No I removed all packages, (php -v didn’t work)

  1. Do You use php-fpm, fcgi or mod_php?

No idea… where would I check this? I used the command below to enable the connection:

setsebool -P httpd_can_network_connect_db 1

  1. What show error.log of Apache?

    [Sun Sep 13 20:08:34.705024 2020] [core:notice] [pid 5667] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
    [Sun Sep 13 20:08:34.706022 2020] [suexec:notice] [pid 5667] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Sun Sep 13 20:08:34.706959 2020] [ssl:warn] [pid 5667] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
    AH00558: httpd: Could not reliably determine the server’s fully qualified domain name, using localhost.localdomain. Set the ‘ServerName’ directive globally to suppress this message
    [Sun Sep 13 20:08:34.729572 2020] [lbmethod_heartbeat:notice] [pid 5667] AH02282: No slotmem from mod_heartmonitor
    [Sun Sep 13 20:08:34.730533 2020] [ssl:warn] [pid 5667] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
    PHP Warning: Module ‘apcu’ already loaded in Unknown on line 0
    [Sun Sep 13 20:08:34.765617 2020] [mpm_prefork:notice] [pid 5667] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.3.22 configured – resuming normal operations
    [Sun Sep 13 20:08:34.765650 2020] [core:notice] [pid 5667] AH00094: Command line: ‘/usr/sbin/httpd -D FOREGROUND’

6.What modules have You installed for php?

oniguruma5php.x86_64                      6.9.5+rev1-2.el7.remi      @remi-safe 

php.x86_64 7.3.22-1.el7.remi @remi-php73
php-bcmath.x86_64 7.3.22-1.el7.remi @remi-php73
php-cli.x86_64 7.3.22-1.el7.remi @remi-php73
php-common.x86_64 7.3.22-1.el7.remi @remi-php73
php-fedora-autoloader.noarch 1.0.1-2.el7 @epel
php-gd.x86_64 7.3.22-1.el7.remi @remi-php73
php-gmp.x86_64 7.3.22-1.el7.remi @remi-php73
php-intl.x86_64 7.3.22-1.el7.remi @remi-php73
php-json.x86_64 7.3.22-1.el7.remi @remi-php73
php-mbstring.x86_64 7.3.22-1.el7.remi @remi-php73
php-opcache.x86_64 7.3.22-1.el7.remi @remi-php73
php-pdo.x86_64 7.3.22-1.el7.remi @remi-php73
php-pear.noarch 1:1.10.12-1.el7.remi @remi-php73
php-pecl-apcu.x86_64 5.1.18-1.el7.remi.7.3 @remi-php73
php-pecl-igbinary.x86_64 3.1.5-1.el7.remi.7.3 @remi-php73
php-pecl-imagick.x86_64 3.4.4-10.el7.remi.7.3 @remi-php73
php-pecl-redis4.x86_64 4.3.0-2.el7.remi.7.3 @remi-php73
php-pecl-zip.x86_64 1.19.0-1.el7.remi.7.3 @remi-php73
php-process.x86_64 7.3.22-1.el7.remi @remi-php73
php-xml.x86_64 7.3.22-1.el7.remi @remi-php73

Here is a link to a copy of my PHPinfo:
https://drive.google.com/file/d/1inMxhwavB8D2LLRcpEnDiNKOLcxV1hRJ/view?usp=sharing

Here is my cofig.php from nextcloud:

<?php

$CONFIG = array (
‘instanceid’ => ‘xxxx’,
‘passwordsalt’ => ‘xxxxx+3Lpa9FOfhOqhO5nu’,
‘secret’ => ‘xxxxxx/xxxx+xxxx/’,
‘trusted_domains’ =>
array (
0 => ‘xxxxxx.ddns.net’,
),
‘datadirectory’ => ‘/var/www/html/nextcloud/data’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘19.0.3.1’,
‘overwrite.cli.url’ => ‘http://192.168.1.50/nextcloud’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘xxxxx’,
‘dbpassword’ => ‘xxxxxx’,
‘installed’ => true,
‘updater.release.channel’ => ‘stable’,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 0,
‘memcache.distributed’ => ‘\OC\Memcache\Redis’,
‘memcache.locking’ => ‘\OC\Memcache\Redis’,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘redis’ =>
array (
‘host’ => ‘localhost’,
‘port’ => 6379,
),
‘enabledPreviewProviders’ =>
array (
0 => ‘OC\Preview\PNG’,
1 => ‘OC\Preview\JPEG’,
2 => ‘OC\Preview\GIF’,
3 => ‘OC\Preview\BMP’,
4 => ‘OC\Preview\XBitmap’,
5 => ‘OC\Preview\MP3’,
6 => ‘OC\Preview\TXT’,
7 => ‘OC\Preview\MarkDown’,
8 => ‘OC\Preview\MSOffice2003’,
9 => ‘OC\Preview\MSOffice2007’,
10 => ‘OC\Preview\MSOfficeDoc’,
11 => ‘OC\Preview\OpenDocument’,
12 => ‘OC\Preview\PDF’,
13 => ‘OC\Preview\TIFF’,
14 => ‘OC\Preview\PSD’,
),
‘mail_from_address’ => ‘nextcloud’,
‘mail_smtpmode’ => ‘smtp’,
‘mail_sendmailmode’ => ‘smtp’,
‘mail_domain’ => ‘xxxxx.com’,
‘mail_smtpauth’ => 1,
‘mail_smtpauthtype’ => ‘LOGIN’,
‘mail_smtphost’ => ‘smtp.xxxx.xxxx’,
‘mail_smtpname’ => ‘xxxx@xxxx.xxxx.com’,
‘mail_smtppassword’ => ‘xxxx-xxxx’,
‘mail_smtpport’ => ‘587’,
‘has_rebuilt_cache’ => true,
‘updater.secret’ => ‘$2yxxxx10$xxxx.Byq.xxxx./xxxx.dJVKe’,
);

Many thanks for your time!
Regards,
K.

Ok, from phpinfo we know that You use mod_php (apache module for parsing php files, itis little bit less secure, but should be fastest method).
It looks You just didn’t install PHP module used for connecting with MySQL/MariaDB server.
This is list of PHP module to install so it should work (i never used httpd, just nginx but it’s all about PHP):

yum install -y php php-mysql php-pecl-zip php-bcmath php-xml php-mbstring php-gd php-intl php-process php-imap php-gmp php-pecl-mcrypt php-smbclient php-imagick php-pdo php-recode php-xmlrpc php-pecl-lzf php-zstd php-geos php-opcache

Also in /etc/php.ini there is quiet low upload limit for files (upload_max_filesize). Change it into something better (CD is 700MB, DVD 4,7GB for example).

I would also changed max_execution_time into 120 (from default 30), and memory_limit to 1024 if You got enough RAM.

To disable SELinux do this command and reboot:

sed --in-place=.bak ‘s/^SELINUX=enforcing/SELINUX=permissive/g’ /etc/selinux/config

Thank you very much, that missing module seemed to be the issue! I went down the rabbithole of upgrading from centos7 to centos8 and things got quite messy… it appears you can’t upgrade, only doing a fresh install. This is for another day…

Many thanks!

Well, some time ago i started making shell script that installs everything anyone need to run own website on CentOS 8. It may help: https://www.marcinwilk.eu/projects/skrypt-centos-8-lamp/