| Author |
Message |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-13, 15:15 Cronscript Fehler |
  |
Hallo!
Folgendes Problem:
Hab nach der Anleitung der Mods das cronscript angepaßt und die Scripte in das cgi-bin geladen, in ascii, blabla.
Nun erhalte ich beim Perl testen folgenden Fehler:
Software error:
Can't continue after import errors at simpletest.pl line 5 BEGIN failed--compilation aborted at simpletest.pl line 5.
For help, please send mail to the webmaster (service@webmailer.de), giving this error message and the time and date of the error. ;
Die Rechte sitzen bei allen Dateien auf 755.
Gehostet ist die Seite bei STRATO!
Wie kriege ich die Karre zum Laufen???
Danke für Eure Hilfe!
Gruß Tim
|
|
  |
 |
Anzeigen
|
Posted:
Anzeigen |
 |
|
| |
 |
moepschen
Moderator

Age: 33
Joined: 21 Jan 2006
Posts: 809
Location: Frankfurt (Oder)

|
Posted:
2008-08-13, 16:36 (No subject) |
  |
Laufen bei dir evtl. nur cgi-Skripte?? Hast du das mal getestet? Sprich so wie beschrieben, die endung pl in cgi umbennen und im Dumper anpassen...
_________________ MfG moepschen
|
|
    |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-13, 18:16 (No subject) |
  |
So, hab nun mal die drei Dateien in .cgi umbenannt und im Dumper
Dateiendung des Scripts: in cgi geändert. Ist das so richtig?
Hier die neue Fehlermeldung:
Software error:
Can't continue after import errors at simpletest.cgi line 5 BEGIN failed--compilation aborted at simpletest.cgi line 5.
For help, please send mail to the webmaster (service@webmailer.de), giving this error message and the time and date of the error. ;
|
|
  |
 |
moepschen
Moderator

Age: 33
Joined: 21 Jan 2006
Posts: 809
Location: Frankfurt (Oder)

|
Posted:
2008-08-13, 18:56 (No subject) |
  |
Ok, so hatte ich es gemeint Was passiert, wenn du auf Perl-Module testen klickst?? Poste mal bitte die Meldung die ausgegeben wird. Langsam glaube ich nämlich, das bei dir kein perl geht
_________________ MfG moepschen
|
|
    |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-14, 07:57 (No subject) |
  |
Hi!
Das glaube ich langsam auch!
Hier der Fehler:
Software error:
Can't continue after import errors at perltest.cgi line 5 BEGIN failed--compilation aborted at perltest.cgi line 5.
For help, please send mail to the webmaster (service@webmailer.de), giving this error message and the time and date of the error.
Was genau muß ich denn Strato mitteilen, damit die Perl lauffähig machen bei mir???
Gruß Tim
|
|
  |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-14, 08:26 (No subject) |
  |
Hier die Antwort von STRATO:
Sehr geehrter Herr Liehmann,
vielen Dank für Ihre Anfrage vom 14.08.2008, die ich Ihnen gerne beantworte.
Für Ihr Anliegen sende ich Ihnen gern einige hilfreiche Informationen.
Bei unseren Premium-Paketen ist es möglich eigene CGI's (.cgi) auf dem Server abzulegen.
Weiterhin stellen wir Ihnen folgende Versionen zur Verfügung:
Perl: version 5.004_05 und 5.8.5
Python: 2.5.1
Ruby: 1.8.6
MySQL: 5.0.51
PHP 3.0.18 : gdl_lib: 1.6
PHP 4.1.2 : gd_lib: 1.6.2
PHP 4.4.8 : gd_lib: 2.0.28 (bundled compatible)
PHP 5.2.5 : gb_lib: 2.0.28 (bundled compatible)
Mittels des Website Configurators haben Sie die Möglichkeit, verschiedene Einstellungen den individuellen Bedürfnissen anzupassen. Alle Informationen zum Bestimmen und Wechseln der PHP-Version finden Sie unter der URL http://www.strato-faq.de/view.php4?articleid=1568&subcatid=3.0.2.20
Informationen zum Installieren eigene CGI´s finden Sie unter http://www.strato-faq.de/indexe.php4?base=view.php4?articleid=555
Ich wünsche Ihnen viel Spaß mit den neuen Möglichkeiten.
WAS BEDEUTET DAS NUN FÜR MICH????
Gruß Tim
|
|
  |
 |
moepschen
Moderator

Age: 33
Joined: 21 Jan 2006
Posts: 809
Location: Frankfurt (Oder)

|
Posted:
2008-08-14, 18:50 (No subject) |
  |
« ttmobil » wrote:
WAS BEDEUTET DAS NUN FÜR MICH????
Quote:
Bei unseren Premium-Paketen ist es möglich eigene CGI's (.cgi) auf dem Server abzulegen.
Alles klar?? Du solltest nun wissen, ob du ein Premium-Paket hast. Das können wir dir nicht beantworten...HAst du eins, arbeite die beiden FAQ-Punkte durch, die dir Strato mitgeliefert hast. Hast du kein Premium-Paket, geht bei dir auch kein cgi und damit auch kein cronjob. Dann solltest du entweder drüber nachdenken, dein Hostingvertrag aufzustocken oder mal in unserem Download-Bereich mal die 2 Lösungen (unter Third Party ) für Windows durchgehen....
_________________ MfG moepschen
|
|
    |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-15, 12:03 (No subject) |
  |
Hi!
Also ich hab nen Premium XE, somit sollte es funktionieren.
Dachte halt, man müsste da nichts mehr installieren oder so.
denn eigentlich habe ich ja schon die CGIs ordnungsgemäß auf meinem
Webspace abgelegt, Rechte gesetzt usw.. Aber gehen tut es immer noch nicht.
Nun gut, dann les ich mal und meld mich dann!
Gruß Tim
|
|
  |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-15, 12:16 (No subject) |
  |
Hab mal die *.pl Dateien geöffnet und in der ersten Zeile steht:
#!/usr/bin/perl -w
Strato gibt aber als Pfad folgendes an:
/usr/bin/perl5
Muß das nun zwingend geändert werden, oder spielt dies keine Rolle?
Und was bedeutet: compilation aborted at simpletest.pl line 5?
Also steckt doch der Fehler irgendwo in der Datei in Zeile 5:
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
oder bei der crondump.pl in Zeile 32:
use CGI::Carp qw/ warningsToBrowser fatalsToBrowser /;
Ich raff das nicht!
Gruß Tim
|
|
  |
 |
DSB
Developer


Age: 41
Joined: 30 Apr 2004
Posts: 16067
Location: Reichenberg bei Würzburg

|
Posted:
2008-08-15, 12:42 (No subject) |
  |
Öffne die cgi-Dtein und passe die erste Zeile wie angegeben an auf:
#!/usr/bin/perl5
Versuche es dann noch einmal und dann sehen wir weiter.
_________________ Gruß / Greetings, DSB
Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
|
|
    |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-15, 15:51 (No subject) |
  |
Hi!
Das hab ich gerade probiert, kein Erfolg, gleiches Fehlerbild!
Gruß Tim
|
|
  |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-16, 07:57 (No subject) |
  |
Und Jungs, was meint Ihr?
Ist die Lage hoffnungslos, oder kriegen wir das noch hin?
Wäre schon toll, wenn das klappen würde!
Gruß Tim
|
|
  |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-20, 14:54 (No subject) |
  |
Hallo!
Ich muß das nochmal aufgreifen, da es immer noch nicht funzt!
Ich habe von Strato folgende Email bekommen:
Nach einer technischen Überprüfung konnte ich keine Einschränkungen feststellen.
Es ist möglich, Skripte sowohl mit der Endung .pl als auch CGI auszuführen.
Ich habe Ihnen unter folgenden Link zwei Testskripte zur Verfügung gestellt.
http://www.neuer-tt.de/cgi-bin/stratotest.cgi
http://www.neuer-tt.de/cgi-bin/stratotest.pl
Warum funktionieren das mit den Dumper-Skripten nun nicht?????
Gruß Tim
|
|
  |
 |
DSB
Developer


Age: 41
Joined: 30 Apr 2004
Posts: 16067
Location: Reichenberg bei Würzburg

|
Posted:
2008-08-20, 16:57 (No subject) |
  |
Poste mal den Inhalt der beiden Skripte hier, damit ich den Code vergleichen kann.
Ich vermute, dass Strato entweder eine alte Version des Carp-Moduls einsetzt oder einen anderen Syntax benötigt. So, wie wir es im Dumper machen, ist es eigentlich Standard.Das Problem ist auch nicht mehr, dass Perl gar nicht ausgeführt wird, sondern ein konkretes Problem beim Einbinden des Carp-Moduls innerhalb des Perlskripts.
_________________ Gruß / Greetings, DSB
Teigwaren heißen Teigwaren, weil sie Teig waren.
Diejenigen, die lautstark darüber diskutieren, warum es nicht geht, mögen bitte jene nicht stören, die es gerade tun.
|
|
    |
 |
ttmobil
uses MSD often

Joined: 05 Sep 2005
Posts: 47

|
Posted:
2008-08-20, 17:14 (No subject) |
  |
|
#!/usr/bin/perl
#SERVER REQUIREMENTS
#################################################################
# In order to run PerlDiver v1.1: #
# #
# 1) Your web server must have the ability to run cgi #
# programs. #
# #
# 2) You must have the ability to change permissions on #
# the cgi program. #
# #
# 3) PERL 4 or higher on your web server. #
# #
# 4) The File:Find perl module installed on your server. #
# If you're not sure if this is installed, please #
# contact your server administrator. #
# #
# INSTALLATION INSTRUCTIONS #
# #
# To install and run PerlDiver v1.1: #
# #
# 1) If /usr/bin/perl is your path to perl, nothing needs #
# to be done to the perldiver.cgi file itself. #
# #
# If your path to perl is not /usr/bin/perl, change #
# the first line of perldiver.cgi to your path to #
# perl. Simply upload perldiver.cgi into your #
# cgi-bin, or other executable directory in ASCII #
# format. #
# #
# If you don't know your path to perl, and have telnet #
# access, telnet to your account and type: #
# whereis perl #
# #
# There, you will see a list of locations the server #
# looks in (and finds) the perl executable, separated #
# by spaces. Pick one, and type it in the first line #
# of perldiver.cgi. #
# #
# 2) Upload perldiver.cgi in ASCII format to your #
# cgi-bin or other executable directory. #
# #
# 2) Change permissions on the file to 755 (NOTE: some #
# web servers may require permissions of 775 or #
# higher for the program to run. If in doubt, check #
# with your server administrator. #
# #
# 3) Run the program in your browser. #
#################################################################
################ DO NOT CHANGE ANYTHING BELOW ###################
$sendmail =`whereis sendmail`;
$plocation =`whereis perl`;@perlloc = split(" ",$plocation);
@mailloc = split(" ",$sendmail);
$font = '<FONT FACE="Verdana, sans serif" SIZE=2>';
&vars;
print "Content-type: text/html\n\n";
print qq~<HTML><HEAD><TITLE>$program $version</TITLE></HEAD><body bgcolor="#FFFFFF" ALINK="#FDB900" LINK="#BF0425" VLINK="#1200FD" TOPMARGIN=0 LEFTMARGIN=0 RIGHTMARGIN=0><TABLE WIDTH=100% BGCOLOR="#FDB900" CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TD>
<BR> </TD></TR></TABLE><HR COLOR="#BF0425" SIZE=2><P ALIGN=CENTER><FONT FACE="Courier New,mono" SIZE=3 COLOR="#BF0425"><B>
$dev<BR><FONT SIZE=6>$program $version</FONT></FONT></P></B><P><DIV ALIGN=CENTER><TABLE WIDTH=100% BGCOLOR="#FDB900" CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TH>$font<FONT SIZE=4>Server-Programm-Pfade</FONT></TD></TR></TABLE><P><TABLE BORDER=0 CELLPADDING=3 WIDTH=95%> <TR><TD BGCOLOR="$bgcolor" WIDTH=35%>${font}<B>Perl Executable:</B></TD><TD WIDTH=65%>${font}$^X</TD></TR> <TR><TD BGCOLOR="$bgcolor">
${font}<B>Perl Version:</B></TD> <TD>${font}$]</TD></TR> <TR><TD BGCOLOR="$bgcolor">${font}<B>PERL compiler version OS:</B></TD> <TD>${font}$^O</TD></TR> <TR><TD BGCOLOR="$bgcolor">${font}<B>GID</B>: <FONT SIZE=1>(steht hier etwas, bist du nicht an einer maschine welche die Mitgliedschaft in mehreren gleichen Gruppen unterstützt)</FONT></TD> <TD>${font}$<</TD></TR> <TR><TD VALIGN=TOP BGCOLOR="$bgcolor">${font}<B>Location von Perl:</B></TD> <TD>${font}~;
foreach $loc(@perlloc)
{
print "$loc<BR>\n";
}
print qq~</TD></TR> <TR><TD VALIGN=TOP BGCOLOR="$bgcolor">${font}<B>Location von Sendmail:</B></TD> <TD>${font}~;
foreach $ml(@mailloc)
{
print "$ml<BR>\n";
}
print qq~</TD></TR> <TR><TD VALIGN=TOP BGCOLOR="$bgcolor">${font} <B>Directory locations searched for perl executables</B></TD><TD>$font~;
foreach $item(@INC)
{
print "$item <BR>\n";
}
print qq~</TD></TR></TABLE><P><TABLE WIDTH=100% BGCOLOR="#FDB900" CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TH>$font<FONT SIZE=4>Umgebungs-Variables</FONT></TD></TR></TABLE><P><TABLE BORDER=0 CELLPADDING=3 WIDTH=95%>~;
foreach $fieldname(keys %ENV)
{
print qq~ <TR><TD BGCOLOR="$bgcolor" WIDTH=35%><B>${font
}
$fieldname</B></TD> <TD WIDTH=65%>${font}$ENV{$fieldname}</TD></TR>~;
}
print qq~</TABLE><P><TABLE WIDTH=100% BGCOLOR="#FDB900" CELLPADDING=2 CELLSPACING=0 BORDER=0><TR><TH>$font<FONT SIZE=4>Installierte Module</FONT></TD></TR></TABLE><P><TABLE BORDER=0 CELLPADDING=3 WIDTH=100%>~;find(\&wanted,@INC);$modcount = 0;foreach $line(@foundmods)
{
$match = lc($line); if ($found{$line}[0] >0) {$found{$line} = [$found{$line}[0]+1,$match]} else {$found{$line} = ["1",$match];$modcount++}}@foundmods = sort count keys(%found);sub count {return $found{$a}[1] cmp $found{$b}[1]}$third = $modcount/3;$count=0;print "<TR><TD WIDTH=33% VALIGN=TOP><TABLE BORDER=0 CELLPADDING=1>";foreach $mod(@foundmods){ chomp $mod; $count++; if ($count <= $third){ print qq~<TR><TD>${font}$mod</TD></TR>~; } else {push (@mod1,$mod)}}print "</TABLE></TD><TD WIDTH=33% VALIGN=TOP><TABLE BORDER=0 CELLPADDING=1>";$count = 0;foreach $mod1(@mod1){ chomp $mod1; $count++; if ($count <= $third){ print qq~<TR><TD>${font}$mod1</TD></TR>~; } else {push (@mod2,$mod1)}}print "</TABLE></TD><TD WIDTH=33% VALIGN=TOP><TABLE BORDER=0 CELLPADDING=1>";$count = 0;foreach $mod2(@mod2){ chomp $mod2; $count++; if ($count <= $third){ print qq~<TR><TD>${font}$mod2</TD></TR>~; }}print qq~</TABLE></TD></TR></TABLE><P><HR COLOR="#BF0425" SIZE=2>${font}<FONT SIZE=1><TABLE WIDTH=100% BGCOLOR="#FDB900" CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD> </TD></TR></TABLE></BODY></HTML>~;exit;sub vars {$dev="Der ultimative Helfer";use File::Find;$bgcolor = "GHOSTWHITE";$program="Server-Info";$version="1.0";}sub wanted { $count = 0; if ($File::Find::name =~ /\.pm$/){ open(MODFILE,$File::Find::name) || return; while(<MODFILE>){ if (/^ *package +(\S+);/){ push (@foundmods, $1); last; } } }}
|
|
  |
 |
|
|