Permission denied

This is a discussion on Permission denied within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I am not certain I am posting in the correct group so if I am not, I'm sorry. ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-29-2006
mcvallet@hotmail.com
 
Posts: n/a
Default Permission denied

Hi,
I am not certain I am posting in the correct group so if I am not, I'm
sorry.
here is my problem:

I have a cgi file that is calling another program (fortran) if I do not
execute through apache, it works just fine, but as soon as I want to
executed it through a web page. I get sh: ./myFortanProgramName:
Permission denied, in my apache log file.

If I do not call this program, the cgi file works fine when calle
through the web.

I checked the permission and they are rwxr-xr-x

I am using apache 2.0 under fedoracore 4

If you have any idea, please help me since I do not know what to do or
in what direction I should look into
Thanks,
mc

  #2 (permalink)  
Old 06-29-2006
David
 
Posts: n/a
Default Re: Permission denied

mcvallet@hotmail.com wrote:
> Hi,
> I am not certain I am posting in the correct group so if I am not, I'm
> sorry.
> here is my problem:
>
> I have a cgi file that is calling another program (fortran) if I do not
> execute through apache, it works just fine, but as soon as I want to
> executed it through a web page. I get sh: ./myFortanProgramName:
> Permission denied, in my apache log file.
>
> If I do not call this program, the cgi file works fine when calle
> through the web.
>
> I checked the permission and they are rwxr-xr-x
>
> I am using apache 2.0 under fedoracore 4
>
> If you have any idea, please help me since I do not know what to do or
> in what direction I should look into
> Thanks,
> mc
>


Perhaps you need to change the ownership of the file to the user of the
webserver.
  #3 (permalink)  
Old 06-30-2006
mcvallet@hotmail.com
 
Posts: n/a
Default Re: Permission denied

> Perhaps you need to change the ownership of the file to the user of the
> webserver.

doesn't seem to work either but thanks.
I am not certain, but I think this has to do with my apache
configuration but I don't know what to change in it

  #4 (permalink)  
Old 07-04-2006
mcvallet@hotmail.com
 
Posts: n/a
Default Re: Permission denied

I checked again for the permissions on the file, I logged in a nobody
and as apache and I can execute the cgi program, and the other program
that is called without any problem, so it must be a problem with my
apache configuration, but I really don't know what I should change in
the configuration so please somebody, help me...
thanks
mc

  #5 (permalink)  
Old 07-04-2006
Xicheng Jia
 
Posts: n/a
Default Re: Permission denied

mcvallet@hotmail.com wrote:
> I checked again for the permissions on the file, I logged in a nobody
> and as apache and I can execute the cgi program, and the other program
> that is called without any problem, so it must be a problem with my
> apache configuration, but I really don't know what I should change in
> the configuration so please somebody, help me...
> thanks
> mc


You may need to use the absolute path of the executable file in your
CGI scripts.

from ./myFortanProgramName to /path/to/myFortanProgramName

Xicheng

  #6 (permalink)  
Old 07-06-2006
mcvallet@hotmail.com
 
Posts: n/a
Default Re: Permission denied


I found the solution, after discussing with several people, (i could
not have found the solution my self)
the problem was link to file permission, but not linux or apache it was
linked to SElinux on fedora core 4.
I disabled it , and now my program works just fine,
thanks for you help,
mc

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0