Error driver postgresql, mariadb, sqlite not found

Im facing this problem in my ubuntu 18.04 with nginx…
Followed this tutorial:

Is the first time i try to enter, so i have to configure the userbd, bd and so on…
My config:

<?php
$CONFIG = array (
  'instanceid' => 'octefmcdhmjn',
);

It seems i use mariadb, and is installed and working fine:

    aaron@aaron-VirtualBox:~$ sudo mysql -u root -p
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 31
    Server version: 10.1.43-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04

    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

    MariaDB [(none)]>

Before you read any Howtos, you should first read the Nextcloud administrator guide which lists all php related requirements. Make sure that the required php database module is loaded correctly and the message should disappear.

BTW, let me point your attention to the available search function of this forum, which you find in the upper right corner of your screen.

Im a Aaron teacher, and we have searched but didnt found a solution… the problem is that we use php7.2 and followed an installed all the required packages as the tutorial suggests. We had some trouble with database, so reinstalled all php modules…but no luck… Also the message says that all modules have been installed, but are listed as missing… so some tweaks have to be done. Other mates have made similar installations and didnt have this problem.

Also the example of installation in official documentation is with apache not nginx ( php part)

Sorry for any inconvenience

I cannot tell you what you’re doing wrong but installing a database, a web server and loading php modules is normally outside of Nextcloud, which only sets it as a requirement. These tasks are usally explained here.
Beside the installation of software modules, you have to make sure that they’re configured and loaded. So let us check this first. Please create a file, e.g. called “test-php-mods.php” in the web servers document root directory, containing the following lines:

<?php
    echo "system: " . php_uname() . "<br>\n";
    echo "php_version: " . phpversion () . "<br>\n";
    echo "extension_dir: " . ini_get('extension_dir') . "<br>\n";
    echo "loaded php.ini: " . php_ini_loaded_file() . "<br>\n";

    if ($list = php_ini_scanned_files()) {
        if (strlen($list) > 0) {
            $files = explode(',', $list);

            foreach ($files as $file) {
                echo "loaded .ini: " . trim($file) . "<br>\n";
            }
        }
    }
    echo "<pre>";
    print_r(get_loaded_extensions());
    echo "<pre/>";
?>

Now open the file using your web browser by entering the url “http:///test-php-mods.php”. Afterwards you should post the displayed information here.

This is the answer:

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20170718/pdo_mysql.so (/usr/lib/php/20170718/pdo_mysql.so: undefined symbol: mysqlnd_allocator), /usr/lib/php/20170718/pdo_mysql.so.so (/usr/lib/php/20170718/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
system: Linux aaron-VirtualBox 5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64<br>
php_version: 7.2.24-0ubuntu0.18.04.1<br>
extension_dir: /usr/lib/php/20170718<br>
loaded php.ini: /etc/php/7.2/cli/php.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/10-opcache.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/10-pdo.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/15-xml.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-apcu.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-apcu_bc.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-bz2.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-calendar.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-ctype.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-curl.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-dom.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-exif.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-fileinfo.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-ftp.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-gd.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-gettext.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-iconv.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-igbinary.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-imagick.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-json.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-mbstring.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-pdo_mysql.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-phar.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-posix.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-readline.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-redis.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-shmop.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-simplexml.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-smbclient.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-sockets.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-sysvmsg.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-sysvsem.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-sysvshm.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-tokenizer.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-wddx.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-xmlreader.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-xmlwriter.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-xsl.ini<br>
loaded .ini: /etc/php/7.2/cli/conf.d/20-zip.ini<br>
<pre>Array
(
    [0] => Core
    [1] => date
    [2] => libxml
    [3] => openssl
    [4] => pcre
    [5] => zlib
    [6] => filter
    [7] => hash
    [8] => pcntl
    [9] => Reflection
    [10] => SPL
    [11] => sodium
    [12] => session
    [13] => standard
    [14] => PDO
    [15] => xml
    [16] => apcu
    [17] => apc
    [18] => bz2
    [19] => calendar
    [20] => ctype
    [21] => curl
    [22] => dom
    [23] => mbstring
    [24] => fileinfo
    [25] => ftp
    [26] => gd
    [27] => gettext
    [28] => iconv
    [29] => igbinary
    [30] => imagick
    [31] => json
    [32] => exif
    [33] => Phar
    [34] => posix
    [35] => readline
    [36] => redis
    [37] => shmop
    [38] => SimpleXML
    [39] => smbclient
    [40] => sockets
    [41] => sysvmsg
    [42] => sysvsem
    [43] => sysvshm
    [44] => tokenizer
    [45] => wddx
    [46] => xmlreader
    [47] => xmlwriter
    [48] => xsl
    [49] => zip
    [50] => libsmbclient
    [51] => Zend OPcache
)

As you can see the module cannot be loaded because of an underlying library couldn’t be found or exists in a wrong version. Please fix this problem first, by e.g reinstalling the package and its dependencies.