I'm seeing a very strange problem with cgi scripts after migrating to
new hardware and from apache 1.3.x to 2.2.2
While 404, 403 etc errors are fine, '500 Internal server error' errors
are now sent as text/plain instead of as text/html.
This means that instead of a nicely
On Mon, Mar 13, 2006 at 07:30:45PM -0600, David Gilden wrote:
> Here is my little script and it throwing a Internal Server Error
Try running it from the command line:
Software error:
Missing right curly or square bracket at - line 13, at end of line
syntax error at - line 13, at
m|i) {
print "Your not authorized: Bad Referer: $referer \n";
} else {
print "all cool: $referer \n";
}
Sara.
- Original Message -
From: "David Gilden" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, March 14, 2006 6:30 AM
Subject: referer throwing Internal
Greetings from Cow Tow!
Here is my little script and it throwing a Internal Server Error
#!/usr/bin/perl
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);
use POSIX 'strftime';
use strict;
my $referer = referer;
if ($referer !~ m|^https?://www\.coraconnect
> I'm having problems with the old "Internal Server Error"
> issue. I know that this is generally due to permissions. I
> have used chmod go+rx -R *, but no joy. The html now works
> but not the cgi. Thoughts?
Try inserting the line
use CGI::Carp (fatalsToBrowser)
I'm having problems with the old "Internal Server Error" issue. I know that
this is generally due to permissions. I have used chmod go+rx -R *, but no
joy. The html now works but not the cgi. Thoughts?
Thanks,
Adam
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
> i decided to put the "use CGI::Carp" declaration before the "use"
> declaration for my module, and sure enough the browser fed me
> information.
that's good.
> it claims that the module wasn't found in any directory in
> @INC, but i could
> have sworn that "." is included. is there any reaso
best solution. so i created a little module. i have tested it via
telnet,
> and it works fine, but when i try to 'use' it in scripts run via the
> web server i get an "Internal Server Error." I even set the permissions
> for the script to 4755 hoping that
ts run via the
web server i get an "Internal Server Error." I even set the permissions
for the script to 4755 hoping that it was a permissions issue, but that
didn't work. then i used CGI::Carp qw( fatalsToBrowser ), and it still
wouldn't tell me anything. i've request
There actually is a setting to use the shebang line with Apache for Win32
and activestate. There's not much point to it, but since I test CGIs at
home, and my server is unix, it lessens the transition. Of course, half the
things I do can't run on Windows, but it works for the basics. (some of
th
ECTED]
Subject: Re: Dreaded Internal Server Error
Hi,
When a CGI script runs from the command line but not from the web server,
a common culprit is permissions. Be sure that anything the script does,
like create files, write to files, read files, execute commands, etc, are
allowed for the web s
Hi,
When a CGI script runs from the command line but not from the web server,
a common culprit is permissions. Be sure that anything the script does,
like create files, write to files, read files, execute commands, etc, are
allowed for the web server user and group.
Lisa Wolfisch Nyman <[EMAIL
oblems. First of I'll, I should tell you
>that the error I get is the dreaded "Internal Server Error" message. I've
>also looked in the logs, and they're further explicated as follows:
>
>[Tue Jul 17 00:42:16 2001] [error] (2)No such file or directory: exec of
Hi,
I'm trying to get a cgi program working (I didn't write it) and I'm
experiencing some mysterious problems. First of I'll, I should tell you
that the error I get is the dreaded "Internal Server Error" message. I've
also looked in the logs, and they'
I really might help if you share a little code with the group. Just paste some into
your email.
Mark Bergeron
-Original Message-
From: "Paul Burkett"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Mon Jun 25 12:59:08 PDT 2001
Subject: 500 Internal Server Error
>Eve
Everything I try I get the same error! I've tried using 'use CGI' but still
nothing. I found a command that works it's called "HTTP Command 204" but how
do I implement this into the script? And where do I put the "Content:" line
in?
16 matches
Mail list logo