Executing php-scripts with individual uid/gid
I'm running Linux, Apache 1.3.x, virtual hosting, php as mod_php.Problem: all php-scripts are running with uid/gid of Apache. But i want it to tun with uid/gid of user-owner of virtual host.
I know that solution of this question lie in using php as cgi (via suexec). But it is not effective to run php a cgi. By the way, do somebody made test for comparing performance of Apache work with php running as module and via suexec? Are difference in performance essential?
I think, it is a way to use php as module and run php-scripts with it's owner uid/gid. And this way is in patching Apache. Some sort of modifications will allow to process all requests intended for some virtual host by Apache child process, running with uid/gid of user-owner of this virtual host. But few problems seems to appear in this way.
Do somebody carried out such works and do somebody uses php as module without "permission problem"?