Seite 1 von 1

Hallo ich habe ein Servererror Problem

Verfasst: 03.02.2007, 10:47
von powerrogge
Hallo kann mir hier einer weiterhelfen ist wichtig. Hier der ACCESS-LOG Eintrag:

[03/Feb/2007:10:15:31 +0100] "GET /cgi-bin/inout.pl HTTP/1.1" 500 538 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)"

Serverfehler 500 - 538

MfG Frank

Verfasst:
von

Verfasst: 03.02.2007, 12:24
von Pompom
Da hilft sicher nicht nur der Servererror und der Logauszug weiter, sondern das Script mit Parametern usw.

Hier das Script

Verfasst: 03.02.2007, 12:30
von powerrogge
Läuft bei mir normal nur bei meinem Kollegen nicht!!!

#!/usr/bin/perl
require "newsconfig.pl";

&formular;

&anfangadmin;
𝕜


print("

<SCRIPT language=\"JavaScript\">
<!--
if (parent.frames.length < 1) {

window.top.location.href=\"admin.pl\";

}
//-->
</SCRIPT>

");


if($FORM{'status'} eq "logout")
{
chmod(0777, "$IPLAGER");
open (NEW_ID,">$IPLAGER");
close NEW_ID;
chmod(0611, "$IPLAGER");
print("<center><img src=\"../bilder/ok.gif\" border=\"0\">&nbsp;<b>Logout bestätigt.<br>Vielen Dank für Ihren Besuch.</b></center>");
}

print("<br>

<form method=\"post\" action=\"logerf.pl\">
<table width=\"28%\" align=\"center\">
<tr>
<th align=center colspan=2><img src=\"../bilder/key.gif\" width=\"16\" height=\"16\" border=\"0\">&nbsp;<b>Login Admintool:</b></th>
</tr>
<tr>
<td width=\"14%\">&nbsp;Login:</td>
<td width=\"86%\">
<input type=\"text\" name=\"administrator\">
</td>
</tr>
<tr>
<td width=\"14%\">&nbsp;Passwort:</td>
<td width=\"86%\">
<input type=\"password\" name=\"passwort\">
</td>
</tr>
<tr>
<td width=\"14%\">
<input type=\"hidden\" name=\"stat\" value=\"einlogen\">&nbsp;<img src=\"../bilder/adminkl.gif\" width=\"16\" height=\"16\" border=\"0\">
</td>
<td width=\"86%\">
<input type=\"submit\" name=\"Abschicken\" value=\"Einloggen\">
</td>
</tr>
</table>
</form>
<h1 align=\"center\">&nbsp;</h1>
<h1 align=\"center\">&nbsp;</h1>
");

Verfasst:
von

Verfasst: 03.02.2007, 12:40
von Pompom
- Unterstützt der Server CGI und in den richtigen cgi-Pfad kopiert ?
- per FTP im ASCII-Mode übertragen ?
- 755 gesetzt ?
- newsconfig.pl vorhanden ?

Alle Scripte sind vorhanden

Verfasst: 03.02.2007, 12:42
von powerrogge
Rechte stehen auch auf 755

MfG Frank

Verfasst: 03.02.2007, 12:48
von Pompom
wenn du mit ssh auf den Server kommst, ruf das Script mal mit perl scriptname.pl auf. Vielleicht ist es gesprächiger.

Verfasst: 04.02.2007, 10:43
von Monk
Guck mal auf die Zeilenenden im Script. Das wäre ein Klassiker.

Verfasst: 04.02.2007, 22:52
von robo
Ist denn die insgesamt erste Ausgabe-Anweisung irgendsowas wie

Code: Alles auswählen

  print "Content-type&#58; text/html\n\n";
?

cu, Robo :)