RuneK has asked for the wisdom of the Perl Monks concerning the following question:
I looked in the errorlog for the apache server and found the following error:Internal Server Error The server encountered an internal error or misconfiguration and was u +nable to complete your request.
Do any of you gurus know what could be wrong? I also executed the cgi script and redirected the output to out.html and I had no problem viewing it in the browser. Here is the cgi code:Thu Feb 12 02:02:41 1998] [error] (2)No such file or directory: exec o +f /var/www/cgi-bin/generateStatistics.cgi failed Thu Feb 12 02:02:41 1998] [error] [client 213.237.88.236] Premature en +d of script headers: /var/www/cgi-bin/generateStatistics.cgi
Thanks!#!/usr/bin/perl open (IN_RESULT,"statistics.txt"); @IN_RESULT = <IN_RESULT>; close (IN_RESULT); @armyImages = ('"images/icon_army_dwarf.gif"', '"images/icon_army_empire.gif"', '"images/icon_army_lizard.gif"', '"images/icon_army_orcs.gif"', '"images/icon_army_skaven.gif"' ); print <<WEB_PAGE; <html> <head> <title>Statistics</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 +"> <STYLE> <!-- A{text-decoration:none} --> </STYLE> <style> body { scrollbar-base-color: #000000; } </style> </head> <body bgcolor="#000000" text="#E6941A" background="images/background2. +gif"> <table width="0" border="0" cellpadding="0" cellspacing="0" height="0" +> <tr> <td width="6" height="6"><img src="images/menu_top_left_border.gif +" width="6" height="6"></td> <td width="118" height="6"><img src="images/menu_top_border.gif" w +idth="118" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="6"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="10" height="6"><img src="images/menu_top_right_border.g +if" width="6" height="6"></td> </tr> <tr> <td width="6" height="25"><img src="images/menu_side_border.gif" w +idth="6" height="37"></td> <td width="118" height="25"><a href="javascript: window.open('stat +istics_administrator.htm','','status=yes, width=600,height=300'); voi +d('');"><img src="images/statistics_icon.gif" width="118" height="36" + border="0"></a></td> <td width="85" height="25"><img src="images/flag_massacre_victory. +gif" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_major_victory.gif +" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_minor_victory.gif +" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_draw.gif" width=" +85" height="36"></td> <td width="85" height="25"><img src="images/flag_minor_defeat.gif" + width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_major_defeat.gif" + width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_massacre_defeat.g +if" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_total_victories.g +if" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_total_defeats.gif +" width="85" height="36"></td> <td width="85" height="25"><img src="images/flag_total_battles.gif +" width="85" height="36"></td> <td width="10" height="25"><img src="images/menu_side_border.gif" +width="6" height="37"></td> </tr> WEB_PAGE $imageCount = 0; foreach $entry (@IN_RESULT) { @current = split (':',$entry); print <<WEB_PAGE; <tr> <td width="6"><img src="images/menu_side_border.gif" width="6" hei +ght="37"></td> <td width="118"><img src=@armyImages[$imageCount] width="85" heigh +t="36"></td> <td width="85" align="center" valign="middle">@current[1]</td> <td width="85" align="center" valign="middle">@current[2]</td> <td width="85" align="center" valign="middle">@current[3]</td> <td width="85" align="center" valign="middle">@current[4]</td> <td width="85" align="center" valign="middle">@current[5]</td> <td width="85" align="center" valign="middle">@current[6]</td> <td width="85" align="center" valign="middle">@current[7]</td> <td width="85" align="center" valign="middle">@current[8]</td> <td width="85" align="center" valign="middle">@current[9]</td> <td width="85" align="center" valign="middle">@current[10]</td> <td width="10"><img src="images/menu_side_border.gif" width="6" he +ight="37"></td> </tr> WEB_PAGE $count++; } print <<WEB_PAGE; <tr> <td width="6" height="2"><img src="images/menu_buttom_left_border. +gif" width="6" height="6"></td> <td width="118" height="2"><img src="images/menu_top_border.gif" w +idth="118" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="85" height="2"><img src="images/menu_side_border_medium +.gif" width="85" height="6"></td> <td width="10" height="2"><img src="images/menu_buttom_right_borde +r.gif" width="6" height="6"></td> </tr> </table> <p> </p> <p> </p> </body> </html> WEB_PAGE
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Ovid) Re: Apache+cgi problem
by Ovid (Cardinal) on Feb 16, 2002 at 15:13 UTC | |
by Dog and Pony (Priest) on Feb 16, 2002 at 15:38 UTC | |
by Ovid (Cardinal) on Feb 16, 2002 at 17:10 UTC | |
by gellyfish (Monsignor) on Feb 16, 2002 at 18:36 UTC | |
by RuneK (Sexton) on Feb 16, 2002 at 15:58 UTC | |
|
Re: Apache+cgi problem
by Zaxo (Archbishop) on Feb 16, 2002 at 15:03 UTC | |
| |
|
(cLive ;-) Re: Apache+cgi problem
by cLive ;-) (Prior) on Feb 16, 2002 at 18:03 UTC | |
|
Re: Apache+cgi problem
by Stegalex (Chaplain) on Feb 17, 2002 at 17:52 UTC | |
by IlyaM (Parson) on Feb 17, 2002 at 18:17 UTC | |
|
Re: Apache+cgi problem
by Stegalex (Chaplain) on Feb 16, 2002 at 15:42 UTC |