httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jurgen <apa...@squarehosting.com>
Subject Re: [users@httpd] Re: not found url, when access cgi program, please help
Date Sun, 15 Dec 2002 01:00:49 GMT
Forget the script for now. A nice script will not matter as long as you have "Cannot stat:
 C:/apache....." in your error log.
Check slashes first.

Jurgen


On Sat, 7 Dec 2002 17:35:17 -0700
"eric" <fsshl@centurytel.net> wrote:

> I use window xp,
> 
> I switch what you recommand
> 
> I put
> use perl;
>                 in first line of my entrance.cgi
> 
> I put the mod_perl2 to my modules directory
> and adding
> 
> LoadModule mod_perl line in my httpd.conf
> directory /.../cgi-bin/
>   option    (I add) +ExecCGI
> 
> Please help again,
> some body said that Not found error, is because my cgi or perl program not
> correct rathern than httpd's configuration.
> ---------------------------------------------
> 
> use perl;
> use strict;
> use Win32::OLE;
> 
> print "Content-type" text/html\n\n";
> 
> 
> print "<HTML><BODY>";
> my @param=param();
> 
> print "This is an exmaple CGI script.\n";
> 
> foreach my $name (param()) {
>  my @value= param($name);
>   print "<p>The field with the NAME
>   attribute equal to <b>
>   $name</b> had a VALUE equal
>   to <b>@value</b></p>\n";
> }
> 
> print "</BODY></HTML>";
> 
> -----------------------------------------------
> highly apprecaite any advancer's help
> 
> sincere ly Eric
> 
> ----- Original Message -----
> From: "Jurgen" <apache@squarehosting.com>
> To: <users@httpd.apache.org>
> Sent: Saturday, December 14, 2002 4:39 PM
> Subject: Re: [users@httpd] Re: not found url, when access cgi program,
> please help
> 
> 
> > Hi Eric,
> >
> > 1) I don't know apache on Windows but I think it should be
> C:\apache\ApacheGroup\cgi-bin\entrance.cgi. I don't know if apache on
> Windows automatically switches slashes to backslashes, but maybe someone
> else know if that can be possible.
> > If you have something like "Cannot stat:
> C:/apache/ApacheGroup/cgi-bin/entrance.cgi " it means that this file is
> either not existing or apache can't access it, because of permissions. I
> don't know if you have now NT or XP.
> > 2)The script below is wrong.
> >
> > print "Content-type: text/html\n\n"; should be the first line outputting
> something, especially before the print "<HTML><BODY>";
> >
> > 3) Do you have Perl installed?
> >
> >
> > One thing is important: The entry in your log file shows that your apache
> configuration is basically right, except that apache is unable to find and
> execute the resulting file. So maybe you find out first how it is with the
> slashes.
> >
> >
> > Jurgen
> >
> >
> > On Sat, 7 Dec 2002 15:39:47 -0700
> > "eric" <fsshl@centurytel.net> wrote:
> >
> > > Dear i.t:
> > >
> > >   This is my C:/apache/ApacheGroup/cgi-bin/entrance.cgi
> > > -----------------------------------------------------
> > >
> > > use strict;
> > > use Win32::OLE;
> > >
> > >
> > >
> > >
> > > print "<HTML><BODY>";
> > > my @param=param();
> > > print "Content-type" text/html\n\n";
> > > print "This is an exmaple CGI script.\n";
> > >
> > > foreach my $name (param()) {
> > >  my @value= param($name);
> > >   print "<p>The field with the NAME
> > >   attribute equal to <b>
> > >   $name</b> had a VALUE equal
> > >   to <b>@value</b></p>\n";
> > > }
> > >
> > > print "</BODY></HTML>";
> > >
> > > -------------------------------------------
> > >
> > > Please please help, I strugle on this for 3 days(on xp)
> > >
> > > looking to hear from you soon
> > >
> > > sincere ERic
> > >
> > > ----- Original Message -----
> > > From: "i.t" <i.t@ithum.de>
> > > To: "eric" <fsshl@centurytel.net>; <it@ithum.de>
> > > Sent: Saturday, December 14, 2002 3:39 PM
> > > Subject: Re: not found url, when access cgi program, please help
> > >
> > >
> > > > msg Samstag 07 Dezember 2002 23:25 by eric:
> > > > > script not found or
> > > > > unable to stat: C:/apache/ApacheGroup/cgi-bin/entrance.cgi, referer:
> > > > >
> > >
> http://www.linuxspice.com/cgi-bin/entrance.cgi?cpu=239.95&motherboard=149.9
> > > > >5
> > > > >
> > >
> &cd=49.95&ram=99.95&monitor=199.95&MKS=39.95&nic=89.95&harddisk=200&name=&e
> > > > >a ddress=&address=&city=&state=&Zip=&credit16=&credit8=&credit3=
> > > >
> > > > script not found -
> > > > I mean, says what the matter is.
> > > >
> > > > There is no mistake in httpd,conf or index.html -
> > > > what is with that script entrance.cgi?
> > > >
> > > > Regards
> > > > --
> > > >  . ___
> > > >  |  |  Irmund     Thum
> > > >  |  |
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> > ---------------------------------------------------------------------
> > 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
> >
> >
> 
> 
> ---------------------------------------------------------------------
> 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

---------------------------------------------------------------------
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