I'm attempting to setup a web server for web hosting. Each client have a directory. I don't want the client to be able to access the parent directory of course. Just his directory and subfolders. How do I prevent them from doing this. When I use hosting from other hosting providers I'm not able to access anything except my home directory so there must be a way to do this. I can't seem to find anything that explains how. Here is my code :