Cannot write into "config" directory


Can someone help me with this pls?
I cant use occ in my nextcloud


Give the user of the webserver write access.

Have a look at

chown -R www-data:www-data /var/www/nextcloud/


How can I do that?


This is the command to do the required change. :wink:


Thanks :kissing_heart:


But now this command doesn’t work: sudo -u www-data php occ help maintenance:mode


What do you try to do? In case you want to enable maintenance mode, try this:

sudo -u www-data php occ maintenance:mode --on



Help me pls.


I need help.