[101536] in RedHat Linux List
Re: "POST TO /query.pl not supported"
daemon@ATHENA.MIT.EDU (Thomas Ribbrock \(Design/DEG\))
Fri Nov 27 04:28:48 1998
Date: Fri, 27 Nov 1998 09:29:21 +0000
From: "Thomas Ribbrock \(Design/DEG\)" <argathin@iname.com>
To: redhat-list@redhat.com, redhat-list-request@redhat.com
Mail-Followup-To: redhat-list@redhat.com, redhat-list-request@redhat.com
In-Reply-To: <3.0.1.32.19981127005006.006bcecc@pop.microtec.net>; from aromes@microtec.net on Fri, Nov 27, 1998 at 12:50:06AM -0800
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
aromes@microtec.net writes:
> Hello,
> I get error: "POST TO /query.pl not supported" when I launch
> "lynx://Localhost". and if I do "lynx://Localhost/cgi-bin/query.pl"
> I just get my query.pl file in text!
[...]
> I also think that I do not have the cgi-perl lib, cause I have no CGI
> directory under /usr/lib/perl
> I also do not have any cgi.pm file. Is that possible that my problem has
> got to do with
> the cgi-perl lib??
No, I'm quite sure it's not related to the cgi-perl lib. That lib is a very
helpful tool, but in no way required to run Perl cgi-scripts. I myself had
several scripts running before I discovered that library (and almost cursed
myself for not finding it earlier... ;-) ).
As for your problem: I take it the script is executable? (Permissions 755)
If so, then I'd suspect a setup problem with the web server.
Here at work, we have httpd 1.4 running - as I haven't configured Apache
yet, I don't know how these two compare. But one thing I could think of
would be this:
# ScriptAlias: This controls which directories contain server scripts.
# Format: ScriptAlias fakename realname
ScriptAlias /cgi-bin/ /<PATH_TO_YOUR_CGT_BIN>/cgi-bin/
(NOTE: This is for httpd-1.4, as of now I don't know Apache's syntax yet,
but I think it's similar)
Here, it's in a file called srm.conf. If you don't know where to look for
it, run a grep command on your configuration files (I think they are
somewhere in /home/httpd), e.g. in your configuration directory
"grep -i cgi *" or "grep -i script". That should tell you the file.
A few shots in the dark, hopefully of some help...
Thomas
--
"Look, Ma, no obsolete quotes and plain text only!"
Thomas Ribbrock | http://www.bigfoot.com/~kaytan | ICQ#: 15839919
"You have to live on the edge of reality - to make your dreams come true!"
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.