Dealing with a shared home/username
HelloI am developing a hosting script that allows users to run hosting businesses of a shared account. But now i have ran into the problem that users (wich all have a subdirectory (cpanel subdomain) of their own, can access the domain.com files, this includes the config file with database info. Is there any way to prevent this via open basedir? or other ways?
I have thought of the following way:
Find a way to make cpanel subdomains no longer public_html/sub, but public_html/users/sub, then asking the host to put a open_basedir on users/, would this work?
Or, is there a way to make all subdomains be automatically limited to their own subdirectory? in another thread someone mentioned this was possible, is this on a per subdomain base? or is it a single setting?
Does anyone else have any ideas to accomplish this? Renember im on a shared account, and cannot move to VPS or DED (as it would ruin the purpose of the script)