Gästebuch-CGI

Hallo Ihr ,
mal wieder ein schreckliches Problem…
Strato-Premium Paket, eigenes cgi-Verzeichnis.
Ich habe mir ein deutsches (von Internet-Partner) übersetztes Gästebuch-cgi runtergeladen (http://mars.spaceports.com/~jextreme/) Jo, dann habe ich alles nett angepasst, so wie beschrieben. Das Perl-Verzeichnis bei Strato liegt wohl (laut Telnet which perl) auf /bin/perl.
So weit, so gut. Selbst den Pfad zu sendmail habe ich herausgefunden (usr/lib/sendmail).
Die Rechte habe ich mit chmod 0755 - wie angegeben - für die pl-Dateien verändert. Auch die Text-Dateien und html-Dateien habe ich verändert.
Das Script läuft allerdings absolut überhaupt nicht.
Kann es sein, dass mein cgi-bin Verzeichnis auf Strato auch behandelt werden muss? Vielleicht mit chmod 0777 ???
Oder das unter cgi-bin von mir ein Ordner namens „guestbook“ erstellt wurde, und der die falschen Rechte hat?
Ich habe wirklich schon alles ausprobiert. Die Dateien mit Ultraedit von dos auf unix-mode umgestellt. Die Pfadangaben tausendmal verändert.
z.B.
voller und kompletter Pfad zur Gästebuch Configurationsdatei
$cfgpath=’/cgi-bin/guestbook/gbkcfg.txt’;

dann

$cfgpath=’./cgi-bin/guestbook/gbkcfg.txt’;

dann

$cfgpath=’…/cgi-bin/guestbook/gbkcfg.txt’;

Selbst mit Telnet habe ich mit dem Befehl „perl -w“ mir die Fehler anzeigen lassen, die die scripte beim Ausführen ablassen:

skate-news.de> perl -w guestbook.pl
Unquoted string „break“ may clash with future reserved word at guestbook.pl line
113.
Useless use of a constant in void context at guestbook.pl line 113.
Name „main::headersrc“ used only once: possible typo at guestbook.pl line 81.
Name „main::guestsrc“ used only once: possible typo at guestbook.pl line 54.
Can’t locate /cgi-bin/guestbook/gbkcfg.txt in @INC (@INC contains: /opt/perl-5.0
04_04/lib/sun4-solaris/5.00404 /opt/perl-5.004_04/lib /opt/perl-5.004_04/lib/sit
e_perl/sun4-solaris /opt/perl-5.004_04/lib/site_perl .) at guestbook.pl line 51.
skate-news.de> perl -w guestadd.pl
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
81.
Useless use of a constant in void context at guestadd.pl line 81.
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
87.
Useless use of a constant in void context at guestadd.pl line 87.
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
107.
Useless use of a constant in void context at guestadd.pl line 107.
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
114.
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
118.
Useless use of a constant in void context at guestadd.pl line 114.
Useless use of a constant in void context at guestadd.pl line 118.
Unquoted string „break“ may clash with future reserved word at guestadd.pl line
386.
Useless use of a constant in void context at guestadd.pl line 386.
Name „main::ipbarrier“ used only once: possible typo at guestadd.pl line 70.
Name „main::maxchar“ used only once: possible typo at guestadd.pl line 179.
Name „main::greeting“ used only once: possible typo at guestadd.pl line 456.
Name „main::replace“ used only once: possible typo at guestadd.pl line 212.
Name „main::scriptsrc“ used only once: possible typo at guestadd.pl line 249.
Name „main::ipfilter“ used only once: possible typo at guestadd.pl line 74.
Name „main::censoring“ used only once: possible typo at guestadd.pl line 497.
Name „main::namebarrier“ used only once: possible typo at guestadd.pl line 91.
Name „main::notify“ used only once: possible typo at guestadd.pl line 440.
Name „main::namefilter“ used only once: possible typo at guestadd.pl line 95.
Name „main::header“ used only once: possible typo at guestadd.pl line 200.
Name „main::badwords“ used only once: possible typo at guestadd.pl line 498.
Can’t locate /cgi-bin/guestbook/gbkcfg.txt in @INC (@INC contains: /opt/perl-5.0
04_04/lib/sun4-solaris/5.00404 /opt/perl-5.004_04/lib /opt/perl-5.004_04/lib/sit
e_perl/sun4-solaris /opt/perl-5.004_04/lib/site_perl .) at guestadd.pl line 59.
skate-news.de> perl -w gbkadmin.pl
Name „main::util_url“ used only once: possible typo at gbkadmin.pl line 113.
Name „main::admin_pass“ used only once: possible typo at gbkadmin.pl line 62.
Can’t locate /cgi-bin/guestbook/gbkcfg.txt in @INC (@INC contains: /opt/perl-5.0
04_04/lib/sun4-solaris/5.00404 /opt/perl-5.004_04/lib /opt/perl-5.004_04/lib/sit
e_perl/sun4-solaris /opt/perl-5.004_04/lib/site_perl .) at gbkadmin.pl line 58.
skate-news.de> perl -w gbkutil.pl
Unquoted string „break“ may clash with future reserved word at gbkutil.pl line 1
34.
Useless use of a constant in void context at gbkutil.pl line 134.
Name „main::headersrc“ used only once: possible typo at gbkutil.pl line 95.
Name „main::guestsrc“ used only once: possible typo at gbkutil.pl line 68.
Name „main::admin_url“ used only once: possible typo at gbkutil.pl line 124.
Can’t locate /cgi-bin/guestbook/gbkcfg.txt in @INC (@INC contains: /opt/perl-5.0
04_04/lib/sun4-solaris/5.00404 /opt/perl-5.004_04/lib /opt/perl-5.004_04/lib/sit
e_perl/sun4-solaris /opt/perl-5.004_04/lib/site_perl .) at gbkutil.pl line 59.

Vielleicht kann jemand etwas damit anfangen.
Ich (und auch mein Mann) sind leider völlig überfordert…

Vielen Dank schon mal für die Hilfe

Kirsten

Strato-Premium Paket, eigenes
cgi-Verzeichnis.

ja ja Strato, ich habe vor kurzen erfolglos versucht ein CGI Script bei Strato zu installieren, dann habe ich das unveränderte Script bei Netbeat getestet und es lief. Es scheint mir als wolle Strato mit dem eigenen CGI Verzeichnis zwar Kunden fangen, aber dann denn Einsatz eigene CGI´s durch seltsame Fehlermeldungen sabotieren :frowning:((((

Das Perl-Verzeichnis
bei Strato liegt wohl (laut Telnet which
perl) auf /bin/perl.

usr/bin/perl geht auch

Die Rechte habe ich mit chmod 0755 - wie
angegeben - für die pl-Dateien verändert.

chmod 0755 ? richtig: chmod 755

Das Script läuft allerdings absolut
überhaupt nicht.

Sind die Dateien als ASCII(richtig) oder Binär(falsch) hochgeladen worden?

Kann es sein, dass mein cgi-bin
Verzeichnis auf Strato auch behandelt
werden muss? Vielleicht mit chmod 0777
???

Eigentlich sollten die Rechte schon stimmen, aber chmod 755 auf das Verzeichnis ist ok

Oder das unter cgi-bin von mir ein Ordner
namens „guestbook“ erstellt wurde, und
der die falschen Rechte hat?

Chmod 755 auf „guestbook“ ist ok

voller und kompletter Pfad zur Gästebuch
Configurationsdatei
$cfgpath=’/cgi-bin/guestbook/gbkcfg.txt’;

dann

$cfgpath=’./cgi-bin/guestbook/gbkcfg.txt’;

dann

$cfgpath=’…/cgi-bin/guestbook/gbkcfg.txt’;

Ich nehme mal an, das der Ordner Guestbook im CGI-Bin liegt, dann versuch mal :blush:cfgpath=’/guestbook/gbkcfg.txt’

Vielleicht kann jemand etwas damit
anfangen.
Ich (und auch mein Mann) sind leider
völlig überfordert…

Vielen Dank schon mal für die Hilfe

Kirsten

Ich hoffe es hilft weiter

JanG

Hi,

habe gerade keine Zeit mir alles durchzusehen, aber installiere doch mal einen Webserver lokal auf Deiner Platte, am besten mit Linux, unter Win geht’s aber auch, z.B. mit Xitami, ist recht komfortabel zu konfigurieren. Dann teste es dort mal. Wenn Du willst, kannst Du mir die Gästebuchdateien und Pfadangaben von Strato ja mal mailen, damit ich es mir ansehe.

Gruß
gmw
http://p-u-n-k.de/

Also, vielen Dank erstmal.
Durch ein Posting bei www.nickles.de habe ich folgendes rausgefunden:
man kann sich ja mit telnet anmelden. Wenn man dann noch die unix-Befehle kennt, hat man wohl schon fast gewonnen :wink:
Ich bin in das Verzeichnis cgi-bin/guestbook gewechselt und habe dort den Befehl pwd eingegeben. Und schon hatte ich den kompletten Pfad des cgi-bin/guestbook-Verzeichnisses, der da hiess
/home/sk/www.skate-news.de/htdocs/cgi-bin/
Ist unglaublich, aber wohl war.
Das Script läuft jedenfalls :wink:
Jetzt habe ich nur noch tierische Probleme mit dem Anpassen an mein Layout…
Danke
Kirsten

Hallo Kirsten,

ich habe auch versucht das CGI.BIN verzeichnis zu installieren, aber dies ging bei mir in die Hose … also habe ich mir eine 20 MB free Webspace bei http://www.xodox.de eingerichtet … da hast du CGI-BIN Verzeichnis … und das auch noch wunderbar erklärt !!

Schau dort einfach mal rein !!!

VIEL GLÜCK !!

MFG Maik Jannasch