Berkeley CSUA MOTD:Entry 41573
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2006/1/27-29 [Computer/SW/Languages/Web] UID:41573 Activity:nil
1/27    I've enabled suexec and ExecCGI in my apache2. I created a simple
        CGI that when `whoami` is executed, claims as me instead of
        www-data|http. Great. However, when I tried the same thing in
        php, it no longer executes as me. Why is that?
        \_ mod_php 'executed' stuff is run as the webserver uid
        \_ You'd have to run PHP under CGI to get this to work, and then it
           would be as slow as any other CGI stuff.  You can run it under
           FastCGI, but then you'd have to have one FastCGI setup per user,
           as I understand it.