You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Scott Dudley <sc...@sdudley.com> on 2007/04/19 08:28:08 UTC

[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:

(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/
-rw-r--r--  1 apache apache 15 Apr 19 00:43 cgi-bin/subdir/index.html

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


Re: [users@httpd] (13)Permission denied: exec of ... failed

Posted by Sander Temme <sc...@apache.org>.
Scott Dudley wrote:
> 
> 
> Steve Swift wrote:
>> Does the file which failed to execute contain a #! (shebang) pointing
>> at an executable that apache cannot execute?
> No.  It's a static HTML.

Looks like your web server is trying to execute the file, possibly
because it's under your ScriptAlias directory.

Put static HTML outside your ScriptAlias.

S.

>>
>> On 19/04/07, *Scott Dudley* < scott@sdudley.com
>> <ma...@sdudley.com>> wrote:
>>
>>
>>     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:
>>
>>     (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/
>>     -rw-r--r--  1 apache apache 15 Apr 19 00:43 cgi-bin/subdir/index.html
>>
>>     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
>>     <ma...@httpd.apache.org>
>>        "   from the digest: users-digest-unsubscribe@httpd.apache.org
>>     <ma...@httpd.apache.org>
>>     For additional commands, e-mail: users-help@httpd.apache.org
>>     <ma...@httpd.apache.org>
>>
>>
>>
>>
>> -- 
>> Steve Swift
>> http://www.swiftys.org.uk 
> 


Re: [users@httpd] (13)Permission denied: exec of ... failed

Posted by Scott Dudley <sc...@sdudley.com>.

Steve Swift wrote:
> Does the file which failed to execute contain a #! (shebang) pointing 
> at an executable that apache cannot execute?
No.  It's a static HTML.
>
> On 19/04/07, *Scott Dudley* < scott@sdudley.com 
> <ma...@sdudley.com>> wrote:
>
>
>     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:
>
>     (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/
>     -rw-r--r--  1 apache apache 15 Apr 19 00:43 cgi-bin/subdir/index.html
>
>     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
>     <ma...@httpd.apache.org>
>        "   from the digest: users-digest-unsubscribe@httpd.apache.org
>     <ma...@httpd.apache.org>
>     For additional commands, e-mail: users-help@httpd.apache.org
>     <ma...@httpd.apache.org>
>
>
>
>
> -- 
> Steve Swift
> http://www.swiftys.org.uk 

-- 

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


Re: [users@httpd] (13)Permission denied: exec of ... failed

Posted by Steve Swift <st...@gmail.com>.
Does the file which failed to execute contain a #! (shebang) pointing at an
executable that apache cannot execute?

On 19/04/07, Scott Dudley <sc...@sdudley.com> wrote:
>
>
> 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:
>
> (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/
> -rw-r--r--  1 apache apache 15 Apr 19 00:43 cgi-bin/subdir/index.html
>
> 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
>
>


-- 
Steve Swift
http://www.swiftys.org.uk