Received: (qmail 15438 invoked by uid 2012); 16 May 1998 01:56:07 -0000 Message-Id: <19980516015607.15437.qmail@hyperreal.org> Date: 16 May 1998 01:56:07 -0000 From: Mike Machado Reply-To: mike@innercite.com To: apbugs@hyperreal.org Subject: Internal server error on cgi ONLY when using suEXEC X-Send-Pr-Version: 3.2 >Number: 2237 >Category: suexec >Synopsis: Internal server error on cgi ONLY when using suEXEC >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri May 15 19:00:01 PDT 1998 >Last-Modified: Fri May 15 20:10:01 PDT 1998 >Originator: mike@innercite.com >Organization: >Release: 1.2.6 >Environment: Solaris x86 2.6, gcc >Description: I have 2 virtualhosts setup. I have a ScriptAlias in each pointing to the same URL. In one vhost i have set the user and the group directives... when I use the vhost with the directives i get internal server error, but if I use the one without the directives it works fine. I have a file struct in /var/www/ for all my vhosts I serve. ex: /var/www/innercite.com serves www.innercite.com I want the cgi-bin under that dir to be the scriptalias and run under user "icite". which is what the User directive inthat vhost is set to. Now in my suexec.h i have the USERDIR_SUFFIX set to /var/www should this be set like that? If not what should go there... >How-To-Repeat: http://solar.innercite.com/cgi-bin/wwwadmin.pl is the one WITHOUT the User directives http://webtest.innercite.com/cgi-bin/wwwadmin.pl User is set to "icite" the same exact file for both so its not a cgi program problem... the file perms are all set u+rw and dirs have u+xrw, so its not perms... >Fix: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Fri May 15 19:06:47 PDT 1998 State-Changed-Why: This is a configuration question, not a bug report. First, read your suexec log as defined by LOG_EXEC in suexec.h. Second, what the USERDIR_SUFFIX is is explained quite clearly in the comment in the suexec.h file and in the documentation. From: Marc Slemko To: Apache bugs database Cc: Subject: Re: suexec/2237: Internal server error on cgi ONLY when using suEXEC (fwd) Date: Fri, 15 May 1998 20:59:05 -0600 (MDT) ---------- Forwarded message ---------- Date: Fri, 15 May 1998 19:12:31 -0700 From: Mike Machado To: marc@hyperreal.org Subject: Re: suexec/2237: Internal server error on cgi ONLY when using suEXEC I read the comment in suexec.h and it was very unclear on how to configure it with vhosts... I found it clear rto do normal user wrapping, but not when the cgi-bin was NOT in a users home dir... marc@hyperreal.org wrote: > Synopsis: Internal server error on cgi ONLY when using suEXEC > > State-Changed-From-To: open-closed > State-Changed-By: marc > State-Changed-When: Fri May 15 19:06:47 PDT 1998 > State-Changed-Why: > This is a configuration question, not a bug report. > > First, read your suexec log as defined by LOG_EXEC in > suexec.h. > > Second, what the USERDIR_SUFFIX is is explained quite clearly > in the comment in the suexec.h file and in the documentation. -- Mike Machado InnerCite Inc. Web Site Development / Network Systems Specialist mike@innercite.com From: Marc Slemko To: Apache bugs database Cc: Subject: Re: suexec/2237: Internal server error on cgi ONLY when using suEXEC (fwd) Date: Fri, 15 May 1998 20:59:07 -0600 (MDT) ---------- Forwarded message ---------- Date: Fri, 15 May 1998 19:39:43 -0700 From: Mike Machado To: marc@hyperreal.org Subject: Re: suexec/2237: Internal server error on cgi ONLY when using suEXEC [19:36:06 15-05-98]: uid: (innercit/innercit) gid: (users/users) wwwboard.pl [19:36:06 15-05-98]: command not in docroot (/var/www/innercite.com/cgi-bin/wwwb oard.pl) there is the error. But what would the documentroot have anything to do with cgi's? Could you please help. I really like the Apache project, and someday wish to get involved and give back like as was the plan originally intended. Thanks.. marc@hyperreal.org wrote: > Synopsis: Internal server error on cgi ONLY when using suEXEC > > State-Changed-From-To: open-closed > State-Changed-By: marc > State-Changed-When: Fri May 15 19:06:47 PDT 1998 > State-Changed-Why: > This is a configuration question, not a bug report. > > First, read your suexec log as defined by LOG_EXEC in > suexec.h. > > Second, what the USERDIR_SUFFIX is is explained quite clearly > in the comment in the suexec.h file and in the documentation. -- Mike Machado InnerCite Inc. Web Site Development / Network Systems Specialist mike@innercite.com >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]