Don't have the permission to create or to upload files here

Nextcloud version (eg, 29.0.5): 29.0.5
Operating system and version (eg, Ubuntu 24.04): Ubuntu Server 22.04.4
Apache or nginx version (eg, Apache 2.4.25): Apache2 version 2.4.52
PHP version (eg, 8.3): PHP 8.3

files are not being displayed, and i can’t create or upload files, it says “you don’t have a permission to create or to upload files here”.

already tried these :
chmod -R 777 /path/to/nextcloud
chown -R www-data:www-data /path/to/nextcloud
sudo -u www-data php /path/to/nextcloud/occ files:scan --all
sudo -u www-data php /path/to/nextcloud/occ maintenance:repair --include-expensive
sudo -u www-data php /path/to/nextcloud/occ maintenance:update:htaccess
sudo -u www-data php /path/to/nextcloud/occ console.php files:scan --all

The output of your config.php file :

<?php
$CONFIG = array (
  'instanceid' => '******',
  'passwordsalt' => '*******',
  'secret' => '******',
  'trusted_domains' =>
  array (
    0 => '******',
    1 => '******',
    2 => '******',
    3 => '******',
    4 => '******',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.5.1',
  'overwrite.cli.url' => '******',
  'overwriteprotocol' => 'https',
  'htaccess.RewriteBase' => '/',
  'dbname' => '******',
  'dbhost' => '127.0.0.1',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '******',
  'dbpassword' => '******',
  'installed' => true,
  'maintenance' => false,
  'maintenance_window_start' => 1,
  'auth.bruteforce.protection.enabled' => false,
);

Is this a brand-new installation or did this behavior start after doing something (e.g. an upgrade)?

Have you checked for indications of the cause in your nextcloud.log file?

a brand new installation indeed, and the nextcloud.log file doesn’t have a thing exept for the cron job error which i managed to fix, it’s a clean installation with errors fix.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.