Help: How to make PHP script run as SETUID under apache?

From: Date: Fri, 19 May 2000 17:15:21 +0000
Subject: Help: How to make PHP script run as SETUID under apache?
Groups: php.general 
Request: Send a blank email to php-general+get-160@lists.php.net to get a copy of this message
Dear Sir, Anyone knows how to make php script run as the userid? Can it be done with suEXEC provided by Apache? If I use suEXEC provided by Apache, it requires my php binary to owned by user. i.e. rwxr-xr-x abc.abc php I have my Apache setting like this NameVirtualHost 123.123.123.123 <VirtualHost 123.123.123.123> ServerName www.abc.com User abc Group abc DocumentRoot "/home/mark/public_html" ScriptAlias /cgi-bin/ "/home/mark/public_html/cgi-bin/" ScriptAlias /php/ "/home/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "/php/php" </VirtualHost> When I run phpinfo.php under /home/mark/public_html/phpinfo.php The Log say, either 1) Premature end of script header 2) target uid/gid does not match with actual uid/gid In case 2, do I need to cp different php binary to different user's home? Please help me or where can I find more information about how to make php run under user's ID. Thanks very much.

« previous php.general (#160) next »