Problem finalizing instalation rights issue

Hi I am in the final stage of installing owncloud on my own webserver where I run several WP sites, phpmyadmin etc.. all fine
The installation went smoothly until I got this message:

Data directory (/var/www/..../data) is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.

If I chmod to 0770 I get the following two messages :
(1)
Data directory (/var/www/..../data) is invalid
Please check that the data directory contains a file ".ocdata" in its root.

(the data directory does exist and the file .ocdata is in place at the root of the dir)_

(2)
Data directory (/var/www/../data) not writable by ownCloud
Permissions can usually be fixed by giving the webserver write access to the root directory.

So when I do this (777) I get again:

Data directory (/var/www/.../data) is readable by other users
Please change the permissions to 0770 so that the directory cannot be listed by other users.

not sure how to fix this I seem to be going round in a circle

thanks for any help

You need to apply the permissions matching your current setup (like webserver user or owner of the files). Information how to do this are available at the documentation [1].

[1]

https://doc.owncloud.org/server/latest/admin_manual/installation/installation_wizard.html#strong-perms-label

Thank you very much kljhlkhglklfgh
The link was a great help I managed to get all working great VG !
Also a little crash course down memory lane server management
best regards
pp46
:sunglasses: