You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Gustavo Vieira Goncalves Coelho Rios <gu...@ifour.com.br> on 2001/02/01 22:07:00 UTC
suexec denies execution of scripts
hi folks! I am trying to get virtualhosts configured so it permited to
execute my scripts from them.
The problem is that when i call my scripts using the domain uri i get an
error on suexec_log.
Here is it:
[2001-02-01 17:44:45]: error: command not in docroot
(/usr/home/hortalica/.public_html/cgi-bin/awcs.cgi)
That's always happens when i try
http://www.hortalica.com.br/cgi-bin/awcs.cgi
But when i try http://www.hortalica.com.br/~hortalica/cgi-bin/awcs.cgi i
get no problem and my scripts runs perfectly.
Here is my virtualhost configuration.
<VirtualHost 192.168.1.10:80>
DocumentRoot /usr/home/hortalica/.public_html
ServerName www.hortalica.com.br
<Directory /usr/home/hortalica/.public_html>
Options Includes
</Directory>
<Directory /usr/home/hortalica/.public_html/cgi-bin>
Options ExecCGI
</Directory>
</VirtualHost>
Now the questions: Why i get this error "command not in docroot"?
RE: suexec denies execution of scripts
Posted by Stathy Touloumis <st...@edventions.com>.
Because suexec is build with a predefined path which allows only scripts
underneath that path to run in. You need to find out what the 'docroot' is
and be sure that your script is underneath this path. There are several
other restrictions that need to be done to ensure that cgi's being run under
suexec need to adhere to.
http://www.apache.org/docs/suexec.html
> I respectfully request your help in order to get this working. My .cgi
> are not perl ones, but /bin/sh or whatever you want that works with
> suexec. I DO known this list is exclusive for mod_perl. But since i get
> no ideia where to go to seek for help. (as far as i known, there is no
> mailing list support for apache/suexec in www.apache.org).
>
> May some one (In the name of God) help with such, **PLEASE** ?
Re: suexec denies execution of scripts
Posted by Gustavo Vieira Goncalves Coelho Rios <gu...@ifour.com.br>.
Vivek Khera wrote:
>
> >>>>> "GVGCR" == Gustavo Vieira Goncalves Coelho Rios <gu...@ifour.com.br> writes:
>
> GVGCR> Now the questions: Why i get this error "command not in docroot"?
>
> Dunno. mod_perl doesn't use suexec nor can it.
Dear gentleman,
I respectfully request your help in order to get this working. My .cgi
are not perl ones, but /bin/sh or whatever you want that works with
suexec. I DO known this list is exclusive for mod_perl. But since i get
no ideia where to go to seek for help. (as far as i known, there is no
mailing list support for apache/suexec in www.apache.org).
May some one (In the name of God) help with such, **PLEASE** ?
Re: suexec denies execution of scripts
Posted by Vivek Khera <kh...@kciLink.com>.
>>>>> "GVGCR" == Gustavo Vieira Goncalves Coelho Rios <gu...@ifour.com.br> writes:
GVGCR> Now the questions: Why i get this error "command not in docroot"?
Dunno. mod_perl doesn't use suexec nor can it.