The only way you can do this is sandbox each user processes, by using things like suphp. So each account runs under their uid.
Otherwise it's much more complicated and in most cases I would suspect a lot of customization to the services used (ie apache)