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

[email protected] ("Amen")
Newsgroups php.general
Organization PDAzip
Message-ID <003b01bfc1b5$d072f7a0$c8670a0a@p>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.