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] sh permission denied
Date Wed, 02 Aug 2006 06:20:10 GMT
> -----Original Message-----
> From: Mark McDowall [mailto:mark.mcdowall@gmail.com] 
> Sent: Tuesday, August 01, 2006 2:36 PM
> To: users@httpd.apache.org
> Subject: [users@httpd] sh permission denied
> 
> I am new to apache and am having problems.
> 
> The problem that I am having is that when I run a cgi script 
> (Python), it is able to return the information from the MySQL 
> database, but when it is asked to run an external program 
> (clustalw), it is unable to find the command.
> 
> When I run the scripts through command line I am able to run 
> the program and the 'clustalw' command works.   I have even 
> altered the command line to specify the exact path and I get 
> the following error message.
> 
> The error that is recorded within the error_log file is:
> [error] [client 127.0.0.1] sh: 
> /usr/*****/clustalw1.83/clustalw: Permission denied 
> 
> I use Apache 2.0.52 running CentOS4 (Fedora Core 4).
> 
> I have tried searching the forums, but to no avail.   I have 
> tried creating a new <Directory /> section that has the path 
> of the program, this did not work, I have changed the user 
> name and group to my own, which does have the correct 
> permission, but I get the same result.

Do you mean that you set the apache "User" and "Group" directives to be
the same as your account?

Do you obtain any additional privileges as a result of login scripts,
etc? If so, these are not executed when apache forks a process to run an
external program.

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

> 
> Hope to hear from someone soon,
> 
> Mark
> 
> -- 
> Mark McDowall
> E-mail: mark.mcdowall@gmail.com 
> WWW: http://www-users.york.ac.uk/~mm526 
> <http://www-users.york.ac.uk/%7Emm526> 
> WWW: http://bionet.0catch.com 
>
 
 
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


Mime
View raw message