Guten Abend!
Zunächst mal sei gesagt, daß ich absoluter Laie bin, was Perl betrifft, und daher um leicht verständlich erklärte Antworten zu meinem Problem bitte. Ich habe auch bis vorgestern noch nie mit Perl gearbeitet...
Und zwar möchte ich mir ein WebBBS-Forum (http://awsd.com/scripts/webbbs/) einrichten, habe auch so weit schon alles fertiggestellt. Obwohl ich mit dem Perl-Code nicht vertraut bin, konnte ich das Forum mit Hilfe der auf der angegebenen Adresse zu findenden WebBBS-Dokumentation leicht konfigurieren. Ich habe sämtliche Perl-Dateien auf meinem Webserver mittels WS_FTP (ASCII-Modus) in das Verzeichnis /cgi-bin/forum kopiert, und die "Rechte 755" aktiviert.
Nun folgendes Problem: Wenn ich die Forum-Index-Seite (.../cgi-bin/forum/webbbs_config.pl) über den Browser öffnen möchte, erscheint kein Forum, sondern ein Download-Fenster, in welchem ich ein Programm auswählen kann, mit dem die Datei geöffnet werden soll. Wähle ich Perl aus, erscheint für den Bruchteil einer Sekunde ein kleines schwarzes Fenster, und nichts weiter geschieht.
Meine Frage ist nun, woran das liegen könnte und wie ich dieses Problem löse.
Habe die Dateien auch mal mit dem Perl-Debugger, der auf meinem Webserver angeboten wird, überprüft, und im Falle jener Datei webbbs_config.pl erscheint im Debugger folgendes:
Name "main::shortboardname" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 64.
Name "main::webbbs_text" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 72.
Name "main::boardname" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 63.
Name "main::dir" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 60.
Name "main::cgiurl" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 61.
Name "main::webbbs_basic" used only once: possible typo at /html/cgi-bin/forum/webbbs_config.pl line 73.
/html/cgi-bin/forum/webbbs_config.pl syntax OK
Ich habe mir die webbbs_config.pl noch mal mit dem Texteditor anzeigen lassen, konnte aber in den angegebenen Zeilen nichts fehlerhaftes entdecken. Hier mal der Code aus der webbbs_config.pl:
#!/usr/bin/perl
############################################
## ##
## WebBBS ##
## by Darryl Burgdorf ##
## (e-mail burgdorf@awsd.com) ##
## ##
## version: 5.12 ##
## last modified: 12/07/02 ##
## license modified: 4/13/06 ##
## copyright (c) 2002 ##
## ##
## latest version is available from ##
## http://awsd.com/scripts/ ##
## ##
############################################
# COPYRIGHT NOTICE:
#
# Copyright 2002 Darryl C. Burgdorf.
# Copyright 2007 Stefan Lemcke
#
# This program is free software. You can redistribute it and/or
# modify it under the terms of either:
#
# a) the GNU General Public License as published by the Free Software
# Foundation, either version 1 or (at your option) any later version,
#
# or
#
# b) the "Artistic License" which comes with this program.
#
# You should have received a copy of the Artistic License with this
# module, in the file artistic.txt. If you did not, I'll be glad to
# provide one.
#
# You should have received a copy of the GNU General Public License
# along with this program. If you did not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston MA 02111-1307.
#
# This program is distributed "as is" and without warranty of any
# kind, either express or implied. (Some states do not allow the
# limitation or exclusion of liability for incidental or consequential
# damages, so this notice may not apply to you.) In no event shall
# the liability of Darryl C. Burgdorf and/or Affordable Web Space
# Design for any damages, losses and/or causes of action exceed the
# total amount paid by the user for this software.
#################################################
## Define your forum's configuration settings! ##
#################################################
## (1) Specify the location of your webbbs_settings.pl script:
require "cgi-bin/forum/webbbs_settings.pl";
## (2) Locate the files and directories unique to this forum:
$dir = "cgi-bin/forum";
$cgiurl = "cgi-bin/forum/webbbs_config.pl";
$boardname = "Forum";
$shortboardname = "";
## (3) Define variables you want changed from webbbs_settings.pl:
#############################################
## Do NOT change anything in this section! ##
#############################################
require $webbbs_text;
require $webbbs_basic;
&Startup;
&WebBBS;
Auch bei der Überprüfung der anderen Perl-Dateien wurden diverse Zeilen aufgelistet... Mein Provider wußte auch keinen Rat, auch im Internet habe ich nichts zu diesem Problem gefunden. Ich würde mich freuen, wenn mir hier jemand helfen könnte.
Schöne Grüße
Daniel