Please find your config directory (probably /var/www/nextcloud/config), check the current permissions and grant the web server user (usually http or www-data) write permission to this folder.
You can also share the output of ls -al <your path to nextcloud>
If you can’t solve the problem by granting write permission, please provide more details (used web server software, nextcloud.log, web server logs).
Can you show the folder content? ls -al /var/www/html/nextcloud/config/
Maybe stupid question: the line is colored because you highlighted it afterwards for us, right? So that line has actually the same color as all other lines for folders, correct?
Just asking to make sure there are no special attributes set, that should be visible by: lsattr /var/www/html/nextcloud/config/