Here is the relevant commands I used:
sudo mkdir -p /var/nextcloud/data
sudo chown www-data:www-data /var/nextcloud/data
sudo chmod 750 /var/nextcloud/data
After I do this I mount a Ext4 partition.
Restart system.
Then when I try to setup NextCloud I get the error in the screenshot.
The Debian Administratorās Handbook - Unfortunately, looks as if stuck with Jessie but may be still a valuable source of advice for any system admin aware of the deviations to a more current stable install or to a different flavour of Linux also.
BTW a kind gesture like problem solved (i.e. ) or a little ACK to one or more of my comments (i.e. click on the heart icon ) would show you are satisfied. This could be a kind gesture and would motivate me like authors of other advice to continue in lending a hand freelyā¦
Please think first, act second only and always have the protection of your data in mind.