Ok so I finally figured it out. config.php in the moodle folder. Maybe you have to change the ownership of the file before you can edit it. In my case I had to do it. Search for this $CFG->dbtype and change the value to mariadb.
This issue is solved. Please lock this thread.
Thank you.