I upgraded Nextcloud, and after the upgrade, one of my trusted domains reverted to an earlier value.
I grabbed the config file using the Files application, downloading to my laptop, revising in text editor, and uploading back to its location in Apps\data\nextcloud\data\config.php (GUI dependent Boomer, can’t retain the SSH scripting method…)
Now I get this error, HOW DO I FIX PERMISSIONS ON THE CONFIG FILE?
Error
Cannot write into “config” directory!This can usually be fixed by giving the web server write access to the config directory.
Thank you friends!
So I logged in again and repeated both commands as you wrote them, but now I get this error:
Configuration was not read or initialized correctly, not overwriting /var/www/html/config/config.php
I was gonna try the same steps on that location, but
when I try to cd to umbrel/var/www/html I get “No such directory”
In case its helpful, the error message from the original question appears as a “system” message from within the Nextcloud environment (nicely formatted error message “cannot write into ‘config’ directory” with all the nice blue cloud graphics), whereas the second message “…not overwriting /var/www/html/config/config.php” , after following the steps that Denny recommended, appears as a plain text browser error
This sets the owner and group to the web server user with ID 33 (www-data), which is often the correct setting for Nextcloud. After that, restart Nextcloud (right-click the Nextcloud icon in the Umbrel dashboard) and check if the issue is resolved.
Also, did you make any changes to the config.php file? If there is a syntax error inside, it can cause problems as well. Please make sure the file is correctly formatted and error-free.