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,
);