| Author |
Apache: Permission Denied
|
|
| mark.mcdowall@gmail.com 2006-08-01, 7:28 pm |
| I am having problems getting apache to run an alignment program for a
website that I am setting up. I get an error saying that Permission
is denied to execute clustalw.
How do I go about giving Apache permission to run this program. I
have tried changing its user and group value to my username, which is
capable of running the program and this does not work.
| |
| Davide Bianchi 2006-08-01, 7:28 pm |
| On 2006-08-01, mark.mcdowall@gmail.com <mark.mcdowall@gmail.com> wrote:
> How do I go about giving Apache permission to run this program.
Check if the program is world-executable and is in a directory that apache
can reach. Check in the error_log there should be a clearer explanation.
Davide
--
NASA uses Windows? Oh great. If Apollo 13 went off course today the manual
would just tell them to open the airlock, flush the astronauts out, and
re-install new ones. --Kibo
| |
| mark.mcdowall@gmail.com 2006-08-02, 1:32 pm |
| The error that is given is in the error_log is:
[error] [client 127.0.0.1] sh: /usr/*****/clustalw1.83/clustalw:
Permission denied
I have gone into the httpd.conf file and also added <Directory
/usr/*****/clustalw1.83>, but it still does not work
Mark
| |
| Davide Bianchi 2006-08-02, 1:32 pm |
| On 2006-08-02, mark.mcdowall@gmail.com <mark.mcdowall@gmail.com> wrote:
> The error that is given is in the error_log is:
>
> [error] [client 127.0.0.1] sh: /usr/*****/clustalw1.83/clustalw:
> Permission denied
It seems that sh (the shell) has no right to execute such program or that
program has no right to do something else. Most of the time the problem is
that the Apache process runs as 'NOBODY' or 'APACHE' and those accounts
have no shell and very limited rights. Check if you can run the program as
the user that runs apache (su - nobody '/usr/..../clustalw') and eventually
change your script to use sudo to run as a different user.
Note: this is not a problem in apache configuration.
Davide
--
New screensaver released: Curtains for Windows.
|
|
|
|