yes...This is the problem from hell. Everybody deals with it. please write anybody you can to request that apache suexec integration be a future feature of PHP!!!
Basically what you need is a CGI wrapper that lets executed scripts be run as user. This is part of the apache suexec functionality, if your hosted on apache. Basically, the special CGI bin is usually called \"scgi-bin\" and is set up from you sites control panel, or by talking to your sysadmin. Once set up, you write a php script called something \"executer.php\" that just says system($args);, and put it in the SCGI-BIN. Then you make a function called like mysystem() that calls the CGI script through something like
fopen($URL.\"?args=\".urlencode($args)) where URL is the location of the of the SCGI thing and $args is the system command to execute.
If anybody knows a better way, PLEASE feel free to correct me...