progolf069
Programmer
I am receiving the following error on my Redhat Linux 7.2 Web Server:
The error number on Internet Explorer Version 6.0 is an error 500 Internal Server Error.
When I check the error log for the web server it reads like this:
My Perl/CGI-Script that I am trying to execute looks like this:
Does anybody have any idea what might be causing this problem? Does anybody have any suggestions on how I can get this to work correctly? Any help you can provide would be greatly apprecated, have an excellent day!
Code:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
--------------------------------------------------------------------------------
Apache/1.3.20 Server at localhost.localdomain Port 80
The error number on Internet Explorer Version 6.0 is an error 500 Internal Server Error.
When I check the error log for the web server it reads like this:
Code:
[Wed May 1 23:00:57 2002] [error] (8)Exec format error: exec of /var/[URL unfurl="true"]www/html/c[/URL]
gi-bin/hello.cgi failed
[Wed May 1 23:00:57 2002] [error] [client 172.137.97.247] Premature end of scri
pt headers: /var/[URL unfurl="true"]www/html/cgi-bin/hello.cgi[/URL]
My Perl/CGI-Script that I am trying to execute looks like this:
Code:
#/usr/bin/perl
# hello.pl - my first perl script!
use CGI;
print "Content-type: text/html\n\n";
print <<"EOF";
<HTML>
<HEAD>
<TITLE>Hello, world!</TITLE>
</HEAD>
<BODY>
<H1>Hello, world!</H1>
</BODY>
</HTML>
EOF
Does anybody have any idea what might be causing this problem? Does anybody have any suggestions on how I can get this to work correctly? Any help you can provide would be greatly apprecated, have an excellent day!