Apache with CGI and suexec ??

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Apache with CGI and suexec ??

Post 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 :(
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

http://httpd.apache.org/docs/1.3/mod/core.html#user

Context: server config, virtual host
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :)
Post Reply