perlunity.de - PERL | JAVASCRIPT | PHP | MySQL | APACHE



#!/COMMUNITY

Members: 5374
davon online: 1
weitere User: 27
Click for quality!




11.02.2012 / 17:59

Community-Member werden   |   Paßwort vergessen   |   OnlineMonitor (1) Wer ist online ... OnlineMonitor starten !
     

 

Home


PERLscripts


PHPscripts


JAVAscripts


Hilfreiches


Links2www


Newscenter


Community


Interna




Community  »  Perl: Allgemeines Forum zur Themenübersicht Themensuche Themenansicht in Thread-Modus


BeitragProbleme mit WebBBS
Seitenanfang
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.

Ich vermute, der Server kann (noch) keine CGI-Anwendungen ausführen, wobei der Bericht auf selfhtml.org zu diesem Thema mir nicht sonderlich weitergeholfen hat.

Oder der Fehler liegt in der webbbs_config.pl ?? - hier der Code.

---

#!/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;

---

Und hier ein Auszug aus der WebBBS-Dokumentation:

---

A) The essential variables are as follows:

In the config script itself, first make sure that the “require” line
is defined with the correct path to your webbbs_settings.pl file. Then
define the following variables:

$dir: The absolute path (minus a trailing slash) of the directory
in which all the WebBBS data files are to be stored. This directory
must be set world-writable, or else WebBBS won’t be able to use it!
Your data directory, by the way, should *not* be located within
your CGI-BIN directory. Even if your server allows it — which
many don’t — locating a world-writable directory and world-
writable files within your CGI-BIN is an unacceptable (and
unnecessary) security risk.

$cgiurl: The URL address of the WebBBS configuration script itself.
(In other words, it should contain the URL to be referenced to run
the script!)

$boardname: The name of your specific discussion board. THIS VARIABLE
MUST BE DEFINED FOR COOKIES AND CERTAIN OTHER SCRIPT FUNCTIONS TO
WORK PROPERLY! If you don’t want the board name to print, set
$printboardname as 0. Do *not* simply leave $boardname undefined.

$shortboardname: You can optionally define here a shorter version of
your forum’s name, to be used in the subject lines of any e-mail
notices sent out announcing new posts. (If this variable is not
defined, your forum’s full name will be used.)

---

Habe ich etwas falsch gemacht? Ist vielleicht der "absolute path" in der Zeile $dir falsch o. ä.?

Ich würde mich freuen, wenn mir hier jemand helfen könnte.

Schöne Grüße
Daniel

Datum: 04.08.2008-21:54

Beitragre: Probleme mit WebBBS
Seitenanfang
Hallo!

Und warum fragst du auf forum.de.selfhtml.org nicht einfach nach, was du an der in http://forum.de.selfhtml.org/my/?t=174929&m=1149287 verlinkten Hilfe nicht verstanden hast?

Hier kann man dir erstmal auch nicht viel mehr sagen als "bring dem webserver cgi bei". Denn genau das ist das Problem, wenn der Server die perl-Datei zum Download anbietet, anstatt sie auszuführen und die Ausgabe des Skriptes zu schicken.

Grüße, Skrilax

Datum: 05.08.2008-00:52

-






-
-