RE: (13)Permission denied: exec of ... failed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

> -----Original Message-----
> From: Scott Dudley [mailto:scott@xxxxxxxxxxx] 
> Sent: Thursday, April 19, 2007 3:10 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  (13)Permission denied: exec of ... failed
> 
> 
> 
> Boyle Owen wrote:
> >> -----Original Message-----
> >> From: Scott Dudley [mailto:scott@xxxxxxxxxxx] 
> >> Sent: Thursday, April 19, 2007 8:28 AM
> >> To: users@xxxxxxxxxxxxxxxx
> >> Subject:  (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@xxxxxxxxxxxxxxxx
> >>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> >> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> >>
> >>     
> >  
> >  
> > 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@xxxxxxxxxxxxxxxx
> >    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> >
> >
> >   
> 
> -- 
> 
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux