ITGEEK
07-01-03, 10:21 PM
We have a customer when creating a form using a cgi script it keeps coming back with an error.
getting an 'Internal Server Error - misconfiguration' message as follows;
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ****@***.org 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.
What is wrong? Does it need to be 'Executable'?
Here is an excerpt from a test page of his called p_test_t2.htm;
<HTML>
<HEAD>
<TITLE>p1</TITLE>
</HEAD>
<BODY bgColor=mediumslateblue text=gold>
<P align=center><font size=7><STRONG>Enter</STRONG></font></P>
<DIV align=center>
<form action="cgi-bin/t2.cgi">
<P align=center>
<INPUT type=submit id="b_thank" value="OK" >
</P>
</form></DIV>
</BODY>
</HTML>
Here is the script in cgi-bin called t2.cgi;
#!/usr/bin/perl -w
#use strict;
use Fcntl qw( : DEFAULT :flock );
use DB_File;
#use CGI qw( :standard ), qw( :html3 ) ;
use CGI;
$q = new CGI;
print $q->header,
$q->start_html('CGI page'),
$q->p('hello world'),
$q->end_html;
Any ideas???
Thanks!
getting an 'Internal Server Error - misconfiguration' message as follows;
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ****@***.org 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.
What is wrong? Does it need to be 'Executable'?
Here is an excerpt from a test page of his called p_test_t2.htm;
<HTML>
<HEAD>
<TITLE>p1</TITLE>
</HEAD>
<BODY bgColor=mediumslateblue text=gold>
<P align=center><font size=7><STRONG>Enter</STRONG></font></P>
<DIV align=center>
<form action="cgi-bin/t2.cgi">
<P align=center>
<INPUT type=submit id="b_thank" value="OK" >
</P>
</form></DIV>
</BODY>
</HTML>
Here is the script in cgi-bin called t2.cgi;
#!/usr/bin/perl -w
#use strict;
use Fcntl qw( : DEFAULT :flock );
use DB_File;
#use CGI qw( :standard ), qw( :html3 ) ;
use CGI;
$q = new CGI;
print $q->header,
$q->start_html('CGI page'),
$q->p('hello world'),
$q->end_html;
Any ideas???
Thanks!