Internal Server Error on Near Fresh Setup

Nextcloud version (eg, 18.0.2): 19.0.1.1
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.1 LTS
Apache or nginx version (eg, Apache 2.4.25): 2.4.41-4ubuntu3.1
PHP version (eg, 7.1): 7.4

The issue you are facing:

The web interface says " Internal Server Error" however client syncing still works. This is a fairly fresh install with no major OS updates so it should not be a dependency error like some people with this error. Everything was working for a few days then when fine-tuning my settings and add-ons the web interface stopped working.

Is this the first time you’ve seen this error? (Y/N): N

Steps to replicate it:

  1. Try and access webpage

The output of your Nextcloud log in Admin > Logging:

Can't because webpage broken

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

<?php
$CONFIG = array (
  'passwordsalt' => '**REMOVED**',
  'secret' => '**REMOVED**',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '**REMOVED**',
    2 => '**REMOVED**',
    3 => '**REMOVED**',
  ),
  'datadirectory' => '/mnt/ncdata',
  'dbtype' => 'pgsql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => 'https://**REMOVED**/',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ncadmin',
  'dbpassword' => '**REMOVED**',
  'installed' => true,
  'instanceid' => 'ocrcyo4d9q44',
  'upgrade.disable-web' => 'true',
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => '2',
  'log.condition' => 
  array (
    'apps' => 
    array (
      0 => 'admin_audit',
    ),
  ),
  'mail_smtpmode' => 'smtp',
  'remember_login_cookie_lifetime' => '1800',
  'log_rotate_size' => '10485760',
  'trashbin_retention_obligation' => 'auto, 180',
  'versions_retention_obligation' => 'auto, 365',
  'simpleSignUpLink.shown' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'filelocking.enabled' => true,
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.5,
    'dbindex' => 0,
    'password' => '**REMOVED**',
  ),
  'logtimezone' => 'US/Central',
  'htaccess.RewriteBase' => '/',
  'share_folder' => '/Shared',
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\BMP',
    4 => 'OC\\Preview\\MarkDown',
    5 => 'OC\\Preview\\MP3',
    6 => 'OC\\Preview\\TXT',
    7 => 'OC\\Preview\\Movie',
    8 => 'OC\\Preview\\Photoshop',
    9 => 'OC\\Preview\\SVG',
    10 => 'OC\\Preview\\TIFF',
  ),
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'caniupdate',
    1 => 'files_reader',
  ),
);

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

[Sat Aug 22 23:07:06.076899 2020] [access_compat:error] [pid 1290445:tid 139788032718592] [client **REMOVED**:62775] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Sat Aug 22 23:09:46.041563 2020] [access_compat:error] [pid 1290444:tid 139788108326656] [client **REMOVED**:41968] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Sat Aug 22 23:15:06.323379 2020] [access_compat:error] [pid 1290445:tid 139788041119488] [client **REMOVED**:19034] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Sat Aug 22 23:23:06.023065 2020] [access_compat:error] [pid 1290444:tid 139788032718592] [client **REMOVED**:28618] AH01797: client denied by server configuration: /var/www/nextcloud/config

Hi @dereddick

This may be useful: ClientDeniedByServerConfiguration - HTTPD - Apache Software Foundation

And have you ensured ALL the relevant directories of your NC install are accessible by your apache / nginx webuser?