I use a raspberry pi 4 8 gb ram, I installed nextcloud 25.0.13 (I’m migrating from owncloud) following the guide I copied the various files, including the config.php file (appropriately modified) when I try to log in:
Mistake
Configuration was not read or initialized correctly, not overwriting /var/www/nextcloud/config/config.php
If I run from the terminal:
sudo -E -u www-data php occ upgrade
Cannot write into “config” directory!
This can usually be fixed by giving the web server write access to the config directory.
But, if you prefer to keep config.php file read only, set the option “config_is_read_only” to true in it.
See Configuration Parameters — Nextcloud latest Administration Manual latest documentation
Ps I know that version 25 is not supported but the guides report this as the only version for migration (owncloud does not support php 8)
jtr
May 8, 2025, 1:07pm
2
What are the ownership and permissions?
Did you completely step 13 of the Manual Upgrade process successfully?
Refs:
yes, I gave the command: sudo chown -R www-data:www-data nextcloud
these are the properties of the folder
pi@raspberrypi:/var/www/nextcloud $ ls -l
total 1628
drwxr-xr-x 47 root root 4096 May 8 22:38 3rdparty
drwxr-xr-x 50 root root 4096 May 8 22:38 apps
-rw-r–r-- 1 root root 19327 May 8 22:38 AUTHORS
-rw-r–r-- 1 root root 1195 May 8 22:38 composer.json
-rw-r–r-- 1 root root 3089 May 8 22:38 composer.lock
drwxr-xr-x 2 root root 4096 May 8 22:41 config
-rw-r–r-- 1 root root 4095 May 8 22:38 console.php
-rw-r–r-- 1 root root 34520 May 8 22:38 COPYING
drwxr-xr-x 23 root root 4096 May 8 22:38 core
-rw-r–r-- 1 root root 6317 May 8 22:38 cron.php
drwxr-x— 5 root root 4096 May 8 22:38 data
drwxr-xr-x 2 root root 12288 May 8 22:38 dist
-rw-r–r-- 1 root root 156 May 8 22:38 index.html
-rw-r–r-- 1 root root 3456 May 8 22:38 index.php
drwxr-xr-x 6 root root 4096 May 8 22:38 lib
-rw-r–r-- 1 root root 283 May 8 22:38 occ
drwxr-xr-x 2 root root 4096 May 8 22:38 ocm-provider
drwxr-xr-x 2 root root 4096 May 8 22:38 ocs
drwxr-xr-x 2 root root 4096 May 8 22:38 ocs-provider
-rw-r–r-- 1 root root 5114 May 8 22:38 package.json
-rw-r–r-- 1 root root 1481957 May 8 22:38 package-lock.json
-rw-r–r-- 1 root root 3187 May 8 22:38 public.php
-rw-r–r-- 1 root root 5597 May 8 22:38 remote.php
drwxr-xr-x 4 root root 4096 May 8 22:38 resources
-rw-r–r-- 1 root root 26 May 8 22:38 robots.txt
-rw-r–r-- 1 root root 2452 May 8 22:38 status.php
drwxr-xr-x 3 root root 4096 May 8 22:38 themes
drwxr-xr-x 2 root root 4096 May 8 22:38 updater
-rw-r–r-- 1 root root 385 May 8 22:38 version.php