Page 1 of 1

Apache with CGI and suexec ??

Posted: Tue Nov 14, 2006 9:13 am
by Chris Corbyn
I can't find any good documentation/tutorials for setting up apache 2.0 to run CGI handled scripts under different userid's by using suexec. I know it's possible since shared hosts do it. Anybody got any pointers?

I've loaded the module without errors, but if I try to put "User" or "Group" directives in a <Directory> block I get "Directive 'User' not allowed here".

I thought this would be easy when I set out to do it last night :(

Posted: Tue Nov 14, 2006 11:08 am
by timvw
http://httpd.apache.org/docs/1.3/mod/core.html#user

Context: server config, virtual host

Posted: Tue Nov 14, 2006 3:37 pm
by Chris Corbyn
Haha, got it thanks. I have a nasty habit of using Google without actually going right to the source. Working beautifully now. It wouldn't work with force-cgi-redirect for some reason (premature end of script headers?) but I recompiled with all is good :)