Hello hello !
Sorry for my French English
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
<?php
$CONFIG = array (
'passwordsalt' => 'Y/9Pc5V2/rt4l7oJgMUUTRIEHl81bO',
'secret' => '2sw+A5Q2OlK9zQfvEoMzIuVBgnhzNFgxb67zTSy2mlXqhN6C',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '192.168.1.25',
),
'datadirectory' => '/home/user/data',
'dbtype' => 'mysql',
'version' => '18.0.3.0',
'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":"192.168.1.18","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 192.168.1.25 not 192.168.1.18 !!
Do you have any idea ?
Regards