A lot of Errors in Console, and unable to look at files, and stuck in welcome screen

Support intro
longer
example
here

Nextcloud version (eg, 18.0.2): Nextcloud 20.0.1
Operating system and version (eg, Ubuntu 20.04): Jail with FreeNAS 14.1 (not sure) on FreeNAS host
Apache or nginx version (eg, Apache 2.4.25): apache24 httpd
PHP version (eg, 7.1): 74

The issue you are facing:

So i have a fresh install of NextCloud in the Jail. It is “working” i can log in, so the db has to work, and i can go into the settings.

Whenever i reload the page in any way (or go on another page of nextcloud) it gives me the welcome screen.
I cant open the Example Files, and when i open the Files tab it is on a neverending loading screen.

After opening the Browser console, i was seeing a lot of errors most notably this one:

Uncaught (in promise) Error: Request failed with status code 405
    at e.exports (createError.js:16)
    at e.exports (settle.js:17)
    at XMLHttpRequest.p.onreadystatechange (xhr.js:69)

but also others like:

Please do NOT wait for the DOMContentLoaded before registering your viewer handler

or

PUT https://xxxx.hopto.org/nextcloud/index.php/apps/user_status/heartbeat 405 (Method Not Allowed)

Is this the first time you’ve seen this error? (Y/N): N i have this error in 3 Fresh installations now but until today Y

Steps to replicate it:

  1. I have no Idea
  2. else i would be able to fix it

The output of your Nextcloud log in Admin > Logging:

https://pastebin.com/JraVfK9N (it is a long Error message)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx',
  'trusted_domains' =>
  array (
    0 => 'xxxx.hopto.org',
  ),
  'datadirectory' => '/usr/local/www/apache24/data/nextcloud/data',
  'dbtype' => 'pgsql',
  'version' => '20.0.1.1',
  'overwrite.cli.url' => 'https://xxxx.hopto.org/nextcloud',
  'dbname' => 'xxxx',
  'dbhost' => '127.0.0.1:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxx',
  'dbpassword' => 'xxxx',
  'installed' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE