thanks Richard.  I've gone with option #2 though I had to fiddle with  
a number of options in the config to get it all right.  great module  
though!

On Sep 16, 2009, at 6:36 PM, Richard James Salts wrote:

> On Wed, Sep 16, 2009 at 04:23:43PM -0700, Erick Calder wrote:
>> hi, I need to execute a command under an account different from that
>> which runs my web server.  perhaps I'm failing to understand what
>> mod_suphp is meant to do but I can't seem to figure out proper usage.
>> this is what I generally would do to execute a shell command:
>>
>> <? echo exec("whoami"); ?>
>>
>> if I wanted it to run under user "rpm", how would I do it?  I've read
>> the docs but am no brighter for them.
> suPHP will execute the script as whatever user specified in the  
> virtual host configuration, or if you're using mod_userdir then it  
> will execute things in ~/public_html as the user whose home  
> directory it is. So you have one of two options:
>
> 1. Enable mod_userdir and put your script in ~rpm/public_html  
> directory.
>
> 2. Create a  <Directory>, <Location> or <VirtualHost> block with  
> suPHP_UserGroup rpm rpm and place your php file there. ( This  
> assumes "force" or "paranoid" was used in configure, with mode  
> "owner" you can just chown rpm:rpm your script and it should work ).
>>
>> thx - e
>>
>> _______________________________________________
>> suPHP mailing list
>> [email protected]
>> https://lists.marsching.com/mailman/listinfo/suphp
>
> _______________________________________________
> suPHP mailing list
> [email protected]
> https://lists.marsching.com/mailman/listinfo/suphp


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to