Support intro
Sorry to hear you’re facing problems 
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can 
Nextcloud version (eg, 20.0.5): 26
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04
So, I tried moving my docker compose file and all related folders to a separate user named “docker”. However, when doing so I also chowned and messed up the permissions to the config.php file and I do not know what they should be. This results in the following error:
Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php
My current permissions for all files and folders are 0:999 which corresponds to root:docker
What should they be, especially if some should have different permissions from others? Data vs config for example.
Hi,
If you use the default nexctcloud container, the permissions should be given to apache.
Inside the container, try one of this command:
chown root:www-data
or
chown 0:33
Regards,
Pierre
Thanks for trying to help, it’s appreciated.
I exec’d into the nextcloud container and tried to chown root:www-data and then www-data:www-data but with both options I just get this plain text message when I try to load the front page:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
Hi,
When you typed the chow
command, did you do it from within the container?
Docker exec -it nextcloud_container_name bash
then
chown root:www-data your_file
What does the following command return?
docker exec nextcloud_container_name ls -l
For me, it is like this
total 164
drwxr-xr-x 47 www-data www-data 4096 May 31 22:33 3rdparty
-rw-r--r-- 1 www-data www-data 19327 May 31 22:33 AUTHORS
-rw-r--r-- 1 www-data www-data 34520 May 31 22:33 COPYING
drwxr-xr-x 50 www-data www-data 4096 Mar 31 13:21 apps
drwxr-xr-x 2 www-data www-data 4096 May 5 11:24 config
-rw-r--r-- 1 www-data www-data 4095 May 31 22:33 console.php
drwxr-xr-x 23 www-data www-data 4096 May 31 22:33 core
-rw-r--r-- 1 www-data www-data 6317 May 31 22:33 cron.php
drwxr-xr-x 42 www-data www-data 4096 Jun 11 14:18 custom_apps
drwxrwx--- 18 www-data www-data 4096 Jun 13 11:00 data
drwxr-xr-x 2 www-data www-data 12288 May 31 22:33 dist
-rw-r--r-- 1 www-data www-data 156 May 31 22:33 index.html
-rw-r--r-- 1 www-data www-data 3456 May 31 22:33 index.php
drwxr-xr-x 6 www-data www-data 4096 May 31 22:33 lib
-rw-r--r-- 1 root root 0 Jun 11 14:03 nextcloud-init-sync.lock
-rwxr-xr-x 1 www-data www-data 283 May 31 22:33 occ
drwxr-xr-x 2 www-data www-data 4096 May 31 22:33 ocm-provider
drwxr-xr-x 2 www-data www-data 4096 May 31 22:33 ocs
drwxr-xr-x 2 www-data www-data 4096 May 31 22:33 ocs-provider
-rw-r--r-- 1 www-data www-data 3187 May 31 22:33 public.php
-rw-r--r-- 1 www-data www-data 5597 May 31 22:33 remote.php
drwxr-xr-x 4 www-data www-data 4096 May 31 22:33 resources
-rw-r--r-- 1 www-data www-data 26 May 31 22:33 robots.txt
-rw-r--r-- 1 www-data www-data 2452 May 31 22:33 status.php
drwxr-xr-x 3 www-data www-data 4096 Mar 31 13:21 themes
-rw-r--r-- 1 www-data www-data 383 May 31 22:33 version.php
Hi, yes I did.
root@a233970097ea:/var/www/html# chown -R www-data:www-data .
root@a233970097ea:/var/www/html# ls -lh
total 164K
drwxr-xr-x 45 www-data www-data 4.0K Jun 10 11:53 3rdparty
-rw-r--r-- 1 www-data www-data 19K Jun 10 11:53 AUTHORS
-rw-r--r-- 1 www-data www-data 34K Jun 10 11:53 COPYING
drwxr-xr-x 50 www-data www-data 4.0K Jun 10 11:54 apps
drwxrwxr-x 2 www-data www-data 4.0K May 26 16:34 config
-rw-r--r-- 1 www-data www-data 4.0K Jun 10 11:53 console.php
drwxr-xr-x 24 www-data www-data 4.0K Jun 10 11:54 core
-rw-r--r-- 1 www-data www-data 6.2K Jun 10 11:53 cron.php
drwxrwxr-x 27 www-data www-data 4.0K Jun 9 16:50 custom_apps
drwxrwx--- 14 www-data www-data 4.0K Jun 13 13:08 data
drwxr-xr-x 2 www-data www-data 12K Jun 10 11:54 dist
-rw-r--r-- 1 www-data www-data 156 Jun 10 11:53 index.html
-rw-r--r-- 1 www-data www-data 3.4K Jun 10 11:53 index.php
drwxr-xr-x 6 www-data www-data 4.0K Jun 10 11:54 lib
-rw-r--r-- 1 www-data www-data 0 Jun 11 19:26 nextcloud-init-sync.lock
-rwxr-xr-x 1 www-data www-data 283 Jun 10 11:53 occ
drwxr-xr-x 2 www-data www-data 4.0K Jun 10 11:54 ocm-provider
drwxr-xr-x 2 www-data www-data 4.0K Jun 10 11:54 ocs
drwxr-xr-x 2 www-data www-data 4.0K Jun 10 11:54 ocs-provider
-rw-r--r-- 1 www-data www-data 3.2K Jun 10 11:53 public.php
-rw-r--r-- 1 www-data www-data 5.5K Jun 10 11:53 remote.php
drwxr-xr-x 4 www-data www-data 4.0K Jun 10 11:54 resources
-rw-r--r-- 1 www-data www-data 26 Jun 10 11:53 robots.txt
-rw-r--r-- 1 www-data www-data 2.4K Jun 10 11:53 status.php
drwxrwxr-x 3 www-data www-data 4.0K May 26 16:34 themes
-rw-r--r-- 1 www-data www-data 383 Jun 10 11:54 version.php