Error message "Forbidden" when I upload a file

Hello hello ! :slight_smile:

Sorry for my French English :smile:

I have installed Nextcloud 18 on a CentOS 8 virtual machine and when I test to upload a file in the Nextcloud web interface I’ve got the error message “Forbiden”.

When I open a default file, an image for exemple, “Nextcloud.png” I’ve got a loading error message.

I have change the data directory in config file /var/www/nextcloud/config/config.php

$CONFIG = array (
  'passwordsalt' => 'Y/9Pc5V2/rt4l7oJgMUUTRIEHl81bO',
  'secret' => '2sw+A5Q2OlK9zQfvEoMzIuVBgnhzNFgxb67zTSy2mlXqhN6C',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '',
  'datadirectory' => '/home/user/data',
  'dbtype' => 'mysql',
  'version' => '',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'mydbpassword',
  'installed' => true,
  'instanceid' => 'ocpob6m7keyo',

I have create a data folder in /home/user/
the recusrsive rights for /home directory are : apache:apache

I have create the .ocdata file in data folder

drwxr-xr-x 2 apache apache 4096 23 mars 16:10 .ocdata

In log file nextcloud.log I have this error

{"reqId":"XnjW1iwdDwJCvchkpw15PgAAAMQ","level":3,"time":"2020-03-23T15:33:42+00:00","remoteAddr":"","user":"maxime","app":"no app in context","method":"GET","url":"/remote.php/webdav/Documents/Nextcloud","message":{"Exception":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException","Message":"Unable to generate a URL for the named route

My server ip is not !!

Do you have any idea ?

Regards :wink: