For several years I was engaged in some kind of small hosting, and my answer: "It depends."
First of all, there is a difference between Apache Module (mod_php). CGI and FastCGI. A good list with all the pros and cons can be found here: Apache php modes
When it comes to security, all modes have pros and cons.
Since we occupied a relatively small number of domains with moderate traffic, I decided to stay with mod_php and use the vhost configuration.
I also used different FTP users for each vhost root directory (of course).
Configuring vhosts (one for each client) allows you to disconnect domains in a simple way, without making your way through the ridiculously large httpd.conf and creating errors on the way.
metaphor_set May 20 '14 at 19:05 2014-05-20 19:05
source share