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. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |