🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Hans Malmberg Sat, 28 Dec 1996 00:00
Internal Server Error
#149
Author: Hans Malmberg
Date: Sat, 28 Dec 1996 00:00
103 lines
3873 bytes
Sat Dec 28 07:12:10 1996

Nu sitter jag *fast*.

Jag f�r inte mitt nya perl-script att skapa en HTML-sida
som avsett, utan n�r jag initierar perl-scriptet fr�n
en browser s� erh�ller jag f�ljande felmeddelande:

      500 Internal Server Error
      Internal Server Error
   The server encountered an internal error or
   misconfiguration and was unable to complete
   your request.
   Please contact the server administrator,
   webmaster@algonet.se and inform them of the time the error occurred,
   and anything you might have done that may have
   caused the error.

Perl-scriptet ser ut s� h�r:
----------------------------------------------------------------------
#!/usr/bin/perl

print "Content-type: text/html\n";

print "<HTML>\n";
print "<HEAD>\n";
print "<TITLE>Resultat av test</TITLE>\n";
print "</HEAD>\n";
print "<BODY>\n";
print "test\n";
print "</BODY>\n";
print "</HTML>\n";
----------------------------------------------------------------------

Det verkar magert, men det st�rre script jag arbetar med ger felmeddelande,
och n�r jag bantar scriptet f�r att leta upp felet har jag till slut
hamnat h�r. Felet beror antagligen p� den d�r lilla struntsaken
jag inte hittar d� man sitter och blir hemmablind. Andra script jag
kodat ihop fungerar, och n�r jag tittar p� dem s� blir jag inte klok p�
varf�r i hela $%&#$%&# namn inte detta fungerar.....

N�v�l, alltmnog och emellan, loggar jag in i shell och
l�gger mig i 
bengt:gapgrp/public_html/cgi-bin>
erh�ller jag:
----------------------------------------------------------------------

bengt:gapgrp/public_html/cgi-bin> perl testhtml.pl

Content-type: text/html
<HTML>
<HEAD>
<TITLE>Resultat av test</TITLE>
</HEAD>
<BODY>
test
</BODY>
</HTML>
bengt:gapgrp> 
----------------------------------------------------------------------
Det skulle v�l g� bra...
Tar jag in dumpningen i browsern 'lokalt', dvs jag rensar och plockar
in HTML-kod lokalt i browsern d� fungerar den kod scriptet genererat.

S� det h�nder n�got n�gonstans och vad kan det vara?


Uppkopplad p� n�tet g�r jag till adressen:

   http://cgi.algonet.se/htbin/cgiwrap?user=gapgrp&script=testhtml.pl
   (vilket �r anropet fr�n min testar-html-sida)

och f�r felmeddelandet:

   <HEAD><TITLE>500 Internal Server Error</TITLE></HEAD>
   <BODY><H1>Internal Server Error</H1>
   The server encountered an internal error or
   misconfiguration and was unable to complete
   your request.<P>
   Please contact the server administrator,
   webmaster@algonet.se and inform them of the time the error occurred,
   and anything you might have done that may have
   caused the error.<P>
   </BODY>
----------------------------------------------------------------------

Naturligtvis har jag gjort en 'misconfiguration' men kan inte
'spotta' (p� den??).  Urs�kta ordleken.

filens status �r ( s� den �r chmod'ad ordentligt).
-rwxr-xr-x   1 gapgrp   algonet     3832 Dec 28 06:31 findtank.pl

Har du n�got tips som kan hj�lpa mig s� uppskattar jag det.




Hans
-- 
      LUND    13.10'30''E  55.43'24''N
      http://www.algonet.se/~hansmbg
--
Re: Internal Server Error
#153
Author: Bengt J. Lindstrom
Date: Mon, 30 Dec 1996 00:00
17 lines
1311 bytes
In article <3070.6936T454T2341@algonet.se>, hansmbg@algonet.se says...
>Perl-scriptet ser ut s� h�r:
>----------------------------------------------------------------------
>#!/usr/bin/perl
>
>print "Content-type: text/html\n";
>
L�gg till ett ytterligare nyradstecken. Content-type... m�ste f�ljas
av en blankrad.

/Bengt

---------------------------------------------------------------------
| Bengt J. Lindstrom  | bli@bombit.se        | TEL: +46-70-594 5332 |
| Computer Consultant | http://www.bombit.se | FAX: +46-8-641 0458  |
---------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads