Thanks, that’s a good idea, I did this to be able to edit themes. But I just found out that there is now an option you can add to config.php:
‘check_data_directory_permissions’ => false,
What I did was I installed Nextcloud, then added the above to config.php, then created the admin account and entered db details etc., and it worked fine after that.