You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Cliff <au...@cruzio.com> on 2002/02/13 03:35:10 UTC
ExecCGI turned off?
Hi folks,
Why can't I run a cgi script? After a fresh RPM install with a new
httpd.conf file... the only thing I changed in the httpd.conf file was
to uncomment # AddHandles cgi-script .cgi, and change the document root
to reflect where the htdocs are kept.
When I try to access a cgi script in a browser, the return is
"Forbidden, You don't have permission to access /env.cgi on this
server". I have tried setting permissions to 777 for files and
directory, but doesn't have any effect.
The error_log reads, "Options ExecCGI is off in this directory:
/var/www/htdocs/env.cgi".
Why is it looking in the htdocs directory?
The .cgi file is in the cgi-bin and I believe ExecCGI is turned on by
default with:
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Anyone know what I'm overlooking? Any help is much appreciated.
Thanks very much,
Cliff
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: ExecCGI turned off?
Posted by Cliff <au...@cruzio.com>.
Yes. I really did type "/env.cgi"! Thanks for the wake up call. With
all the mucking around in the httpd.conf I must have typed the
"/cgi-bin/env.cgi" path when it was messed up and didn't try it in the
fresh .conf file.
Somehow I thought there was a directive to know a .cgi was in cgi-bin,
but the ScriptAlias only tacks on the absolute path to the /cgi-bin/
directory.
Thank you
Owen Boyle wrote:
>
> Cliff wrote:
> >
> > Hi folks,
> >
> > Why can't I run a cgi script? After a fresh RPM install with a new
> > httpd.conf file... the only thing I changed in the httpd.conf file was
> > to uncomment # AddHandles cgi-script .cgi, and change the document root
> > to reflect where the htdocs are kept.
> >
> > When I try to access a cgi script in a browser, the return is
> > "Forbidden, You don't have permission to access /env.cgi on this
> > server". I have tried setting permissions to 777 for files and
> > directory, but doesn't have any effect.
> >
> > The error_log reads, "Options ExecCGI is off in this directory:
> > /var/www/htdocs/env.cgi".
> >
> > Why is it looking in the htdocs directory?
>
> Because, you told it to. Did you really type "/env.cgi" into the
> browser? If so, it will look for "DocumentRoot"/env.cgi.
>
> Try typing /cgi-bin/env.cgi and check your path in ScriptAlias
>
> Rgds,
>
> Owen Boyle
> >
> > The .cgi file is in the cgi-bin and I believe ExecCGI is turned on by
> > default with:
> >
> > <Directory "/var/www/cgi-bin">
> > AllowOverride None
> > Options ExecCGI
> > Order allow,deny
> > Allow from all
> > </Directory>
>
> ---------------------------------------------------------------------
> 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
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: ExecCGI turned off?
Posted by Owen Boyle <ob...@bourse.ch>.
Cliff wrote:
>
> Hi folks,
>
> Why can't I run a cgi script? After a fresh RPM install with a new
> httpd.conf file... the only thing I changed in the httpd.conf file was
> to uncomment # AddHandles cgi-script .cgi, and change the document root
> to reflect where the htdocs are kept.
>
> When I try to access a cgi script in a browser, the return is
> "Forbidden, You don't have permission to access /env.cgi on this
> server". I have tried setting permissions to 777 for files and
> directory, but doesn't have any effect.
>
> The error_log reads, "Options ExecCGI is off in this directory:
> /var/www/htdocs/env.cgi".
>
> Why is it looking in the htdocs directory?
Because, you told it to. Did you really type "/env.cgi" into the
browser? If so, it will look for "DocumentRoot"/env.cgi.
Try typing /cgi-bin/env.cgi and check your path in ScriptAlias
Rgds,
Owen Boyle
>
> The .cgi file is in the cgi-bin and I believe ExecCGI is turned on by
> default with:
>
> <Directory "/var/www/cgi-bin">
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> </Directory>
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org
Re: ExecCGI turned off?
Posted by Pietro Cagnoni <pc...@mclink.net>.
> The error_log reads, "Options ExecCGI is off in this directory:
> /var/www/htdocs/env.cgi".
>
> Why is it looking in the htdocs directory?
try checking the ScriptAlias directive.
pietro.
---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org