run extension library as different uid/gid?

From: Date: Thu, 29 May 2003 04:43:32 +0000
Subject: run extension library as different uid/gid?
Groups: php.general 
Request: Send a blank email to php-general+get-149349@lists.php.net to get a copy of this message
Hi, I have created an extension library for my own use. This library needs to access a storage area needs specific user ID to operate. If I start Apache as normal ( using User Apache, Group Apache in httpd.conf ), my PHP script fails to run. I try to setuid / setguid on the PHP script ( this script will call the function in my extension library ) to the specific uid/gid I need, it didn't work. The only way I can make it work is to run Apache as the uid/gid that I needed. But this is surely breaking something else. What should I do in order to resolve this? TIA. - Joe

« previous php.general (#149349) next »