In a shared hosting environment I would recommend the use of suexec:
"The suEXEC feature provides Apache users the ability to run CGI and SSI programs under user IDs different from the user ID of the calling web-server"
->
http://httpd.apache.org/docs/2.0/suexec.html
If you offer PHP, have a look at suphp:
"suPHP is a tool for executing PHP scripts with the permissions of their owners. It consists of an Apache module (mod_suphp) and a setuid root binary (suphp) that is called by the Apache module to change the uid of the process executing the PHP interpreter."
->
http://www.suphp.org/Home.html
Further, you can 'jail' your apache-server and put it under a chroot-jail.
a) "The objective of makejail is to help an administrator creating and updating a chroot jail with short configuration files."
->
http://www.floc.net/makejail
b) "mod_chroot makes running Apache in a secure chroot environment easy. You don't need to create a special directory hierarchy containing /dev, /lib, /etc."
->
http://core.segfault.pl/~hobbit/mod_chroot/
lg.
Rainer