multiple apache deamons
Hello,I have my dedicated server and I want to start my hosting business. But I stuck on user permissions.
Apache runs under user & group nobody. PHP is installed as sapi module, so I can't use suexec fro php scripts.
Problem is that every user have to chmod files to 775. In that case anybody who has ssh access to server can read those files. Also anybody can write files to directory that has 777 permission.
To fix this problem there two solutions:
1) I can chown all php scripts to nobody.nobody and chmod all files to 770 for example. In this case nobody who has ssh access will be able to read those files. Also this will be a problem if I will enable safe_mode in php.
2) I have read on http://apache.org that I can run multiple daemons. Every daemon will run under different user and group. Also I have to specify Listen directive.
So, here is the main question. Does every damon have to run on different ip, or I can specify domain names in Listen that have A record in DNS with the same ip?
Also, how can I restart one of running deamons.
Hope somebody can answer my questions.
Thank you.