---
title: "Gästboksproblem åter igen.. =)"
type: "forum-thread"
url: "https://www.webforum.nu/amne/webbutveckling/19380-gästboksproblem-åter-igen"
topic: "Webbutveckling"
topic_url: "https://www.webforum.nu/amne/webbutveckling"
author: "GrAnD"
published: "2001-06-28T15:59:00.000Z"
updated: "2001-06-29T17:00:00.000Z"
replies: 1
views: 186
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/webbutveckling/19380-gästboksproblem-åter-igen"
---

# Gästboksproblem åter igen.. =)

## #1 — GrAnD, 2001-06-28T15:59Z

Hej igen!

hehe nu är det så att jag har kodat om gästboken. Så nu har jag ett annat problem, jag får ett internal server error. Antagligen så har jag inte configurerat Apache server rätt. Någon som kan hjälpa mig med detta? Jag bifogar felmeddelandet från webbserver och sedan skickar jag oxå med koden här nedan.
\____________________________________\_

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@icst.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

\--------------------------------------------------------------------------------

Apache/1.3.20 Server at [www.icst.com](http://www.icst.com)  Port 80
\______________________________________\_

\#!/usr/bin/perl
use CGI:

$co = new CGI;

open (BOOK, =\>\>book.htm") or die "Can´t open the guestbook!";
seek (BOOK, -length($co-\>end_HTML, 2);
$date ='date';
chop($date);
$username = $co-\>param,('username');
$username =\~s/\</&lt/;
$email = $co-\>param,('email');
$email =\~s/\</&lt/;
$city = $co-\>param,('city');
$city =\~s/\</&lt/;
$country = $co-\>param,('country');
$country =\~s/\</&lt/;
$text = $co-\> param('comments')
$text =\~s/\</&lt/;
print BOOK
$co-\>h3("New Comments by", $username, " at ", $date, " from ", $city, " in the country of ", $country, " Contact user at ", $email,
$co-\>p,$text,),$co-\>hr,$co-\>end_HTML;
close BOOK;

print $co-\>header,
$co-\>start_html ( -title=\>ICST´s Guestbook', -BGCOLOR=\>'white',);

print

$co-\>center($co-\>h1('Thank you for your contribute to our guestbook!'));
"If you want to take a look in our guestbook", $co-\>a({href=\>localhost/book.htm"},
"click here"),",",
$co-\>hr,
$co-\>end_HTML;

Permalänk: https://www.webforum.nu/p/19380

## #2 — Hansen, 2001-06-29T17:00Z

Hej,

Har du testat att köra ditt script innan du laddat upp det?

perl mitt_script.pl

Och sett om du får några fel meddelande?

Ditt script innehåller många fel, börja med att testa och ta bort felen efterhand.

Permalänk: https://www.webforum.nu/p/341924

---

Tråden på webben: https://www.webforum.nu/amne/webbutveckling/19380-gästboksproblem-åter-igen
