I have a LAMP server (Ubuntu) running PHP. I want to host multiple domains on it.
My plan is to create different user for each domain because I want to make sure if one domain gets hacked, it wont affect other domains.
My worry is if one domain gets hacked, how do I prevent hacker from uploading a rogue PHP file that can grab data from my other domains? Is there a way to restrict all PHP files in a certain domain to only operate within that directory and not outside it?