By default "instances" that are created under LAMP2 run as the user (holding id) account "lamp". If you want to ensure that instances cannot access files from another instance it is possible to configure a multi-tenant environment where each instance runs as a different account/holding id. This provides more separation between instances, but does not guarantee complete isolation. If you have any security concerns about a particular instance, ensure that it is isolated to its own VM. Some use cases for using different ids is to separate a dev/test/prod instance or support multiple developers,but keep them isolated from accessing each other files.

chgrp -R lampgrp [problem directory] chmod -R g=u [problem directory] |
It is possible to create a "locked" down configuration where the web server process only has "read" permission to files uploaded via webdav (by default the webserver has read/write).
To do this you will need to have at least one "instance" running as "lamp".
cd [target directory] |
chmod -R g-w . |
chmod g+w uploads |