httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] (13)Permission denied: exec of ... failed
Date Thu, 19 Apr 2007 15:55:53 GMT
 

> -----Original Message-----
> From: Scott Dudley [mailto:scott@sdudley.com] 
> Sent: Thursday, April 19, 2007 3:10 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] (13)Permission denied: exec of ... failed
> 
> 
> 
> Boyle Owen wrote:
> >> -----Original Message-----
> >> From: Scott Dudley [mailto:scott@sdudley.com] 
> >> Sent: Thursday, April 19, 2007 8:28 AM
> >> To: users@httpd.apache.org
> >> Subject: [users@httpd] (13)Permission denied: exec of ... failed
> >>
> >>
> >> I'm working on a friend's FC 3 server running Apache/2.0.54.
> >>
> >> We're getting the following error accessing 
> >> http://domain/cgi-bin/subdir/index.html:
> >>     
> >
> > This is a weird URL - what is it; static HTML or a cgi program? 
> >
> > If it's static HTML, it can't go in a CGI directory. If 
> it's a program,
> > it needs to be executable (from your directory listing below: 
> >   
> It's a static HTML and it used to work.  How long ago, I 
> don't know but 
> he has several such examples.  I too would never consider such a 
> directory structure and have no idea why the author of these 
> sites did 
> but the issue is - it worked and now it doesn't and he just 
> wants to get 
> it fixed.

As Sander says, static HTML *cannot* be inside a ScriptAlias directory.
That's the bottom line...

There is no one-line directive to do what "used to work" you would have
to do something very complicated like individually identifying all
programs with <Files> containers and AddHandler directives (see
http://httpd.apache.org/docs/2.2/howto/cgi.html for details).

If that config is no longer available, then it would be less pain in the
long run to reformat the site, putting CGI stuff in the ScriptAlias dir
and static content elsewhere. 

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> 
> Thanks.
> >   
> >> -rw-r--r--  1 apache apache 15 Apr 19 00:43 
> cgi-bin/subdir/index.html
> >>     
> >
> > ...it ain't).
> >
> > Rgds,
> > Owen Boyle
> > Disclaimer: Any disclaimer attached to this message may be ignored. 
> >
> >   
> >> (13)Permission denied: exec of 
> >> '/www/docs/domain/cgi-bin/subdir/index.html' failed
> >>
> >> Permissions all appear correct:
> >>
> >> drwxr-xr-x  20 apache apache 4096 Apr 19 01:07 cgi-bin/
> >> drwxr-xr-x  10 apache apache 4096 Apr 19 00:35 cgi-bin/subdir/
> >>
> >> No suExec and SELinux is disabled.
> >>
> >> We can execute CGI's placed in the top-most cgi-bin directory 
> >> but cannot 
> >> seem to access any contents located deeper in that tree.
> >>
> >> What am I missing?
> >>
> >> -- 
> >>
> >> Regards,
> >>
> >> Scott Dudley
> >>
> >>
> >> 
> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP 
> >> Server Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>     
> >  
> >  
> > This message is for the named person's use only. It may 
> contain confidential, proprietary or legally privileged 
> information. No confidentiality or privilege is waived or 
> lost by any mistransmission. If you receive this message in 
> error, please notify the sender urgently and then immediately 
> delete the message and any copies of it from your system. 
> Please also immediately destroy any hardcopies of the 
> message. You must not, directly or indirectly, use, disclose, 
> distribute, print, or copy any part of this message if you 
> are not the intended recipient. The sender's company reserves 
> the right to monitor all e-mail communications through their 
> networks. Any views expressed in this message are those of 
> the individual sender, except where the message states 
> otherwise and the sender is authorised to state them to be 
> the views of the sender's company.
> >
> > 
> ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP 
> Server Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >   
> 
> -- 
> 
> Regards,
> 
> Scott Dudley
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message