A
A
arbrspb2019-08-23 01:15:58
ownCloud/Nextcloud
arbrspb, 2019-08-23 01:15:58

Owncloud file upload error, what's wrong?

owncloud config

<?php
$CONFIG = array (
  'instanceid' => 'ocjrfwznljew',
  'passwordsalt' => '*****',
  'secret' => '*****',
  'trusted_domains' =>
  array (
    0 => '192.168.1.120',
    1 => 'Внешний IP (не указываю тут)',
  ),
   // memached
'memcache.local' => '\OC\Memcache\Memcached',
'memcache.distributed' => '\OC\Memcache\Memcached',
'memcached_servers' => array(
     array('localhost', 11211),
     ),
//memached

  'datadirectory' => '/mnt/owncloud/data',
  'overwrite.cli.url' => 'http://192.168.1.120/owncloud',
  'dbtype' => 'mysql',
  'version' => '10.2.1.4',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '******',
  'dbpassword' => '******',
  'logtimezone' => 'UTC',
  'apps_paths' =>
  array (
    0 =>
    array (
      'path' => '/var/www/html/owncloud/apps',
      'url' => '/apps',
      'writable' => true,
 ),
    1 =>
    array (
      'path' => '/var/www/html/owncloud/apps-external',
      'url' => '/apps-external',
      'writable' => true,
    ),
  ),
  'installed' => true,

'logtimezone' => 'Europe/Moscow',                   // или другой Ваш часовой пояс
'logfile' => '/var/log/owncloud-acces.log',
'loglevel' => '0',
'log_authfailip' => true,

//* Block_file
'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => [
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0.0,
   'password' => '', // Optional, if not defined no password will be used.
  ],

);

When uploading files to the server, it says Forbidden error

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
arbrspb, 2019-09-01
@arbrspb

After transferring the data folder, in my case it is like this. 'datadirectory' => '/mnt/owncloud/data',
You need to go to phpmyadmin, select the database where owncloud is installed, find the user under which you enter owncloud and set the home parameter, where the data folder is located
column

home

column value
the value does not seem to need to be changed
ps Or just create a new user, all new paths must be registered

D
Dimonchik, 2019-08-25
@dimonchik2013

Does atlichny kAnfig
work?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question