Lunarpages Web Hosting Forum

Author Topic: guestbook.pl or guestbook.cgi?  (Read 9918 times)

Offline missladybee

  • Spacescooter Operator
  • *****
  • Posts: 45
    • http://www.beadedimages.com
guestbook.pl or guestbook.cgi?
« on: October 28, 2004, 03:18:57 PM »
I could use some help in re-setting up a guestbook on my website.  It worked before I moved to Lunarpages and now comes up with this error:

-----------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-----------------------------------
Here is the script I am using, although my original setup was for a guestbook.cgi in cgi.bin not guestbook.pl ... unfortunately I don't know the difference:

#!/usr/bin/perl
##############################################################################
# Guestbook                     Version 2.3.1                                #
# Copyright 1996 Matt Wright    mattw@scriptarchive.com                      #
# Created 4/21/95               Last Modified 10/29/95                       #
# Scripts Archive at:           http://www.scriptarchive.com/                #
##############################################################################
# COPYRIGHT NOTICE                                                           #
# Copyright 1996 Matthew M. Wright  All Rights Reserved.                     #
#                                                                            #
# Guestbook may be used and modified free of charge by anyone so long as     #
# this copyright notice and the comments above remain intact.  By using this #
# code you agree to indemnify Matthew M. Wright from any liability that      #  
# might arise from it's use.                                                 #  
#                                                                            #
# Selling the code for this program without prior written consent is         #
# expressly forbidden.  In other words, please ask first before you try and  #
# make money off of my program.                                              #
#                                                                            #
# Obtain permission before redistributing this software over the Internet or #
# in any other medium.   In all cases copyright and header must remain intact.#
##############################################################################
# Set Variables

$guestbookurl = "http://your.host.com/~yourname/guestbook.html";
$guestbookreal = "/home/yourname/public_html/guestbook.html";
$guestlog = "/home/yourname/public_html/guestlog.html";
$cgiurl = "http://your.host.com/cgi-bin/guestbook.pl";
$date_command = "/usr/bin/date";

# Set Your Options:
$mail = 0;              # 1 = Yes; 0 = No
$uselog = 1;            # 1 = Yes; 0 = No
$linkmail = 1;          # 1 = Yes; 0 = No
$separator = 1;         # 1 = <hr>; 0 = <p>
$redirection = 0;       # 1 = Yes; 0 = No
$entry_order = 1;       # 1 = Newest entries added first;
                        # 0 = Newest Entries added last.
$remote_mail = 0;       # 1 = Yes; 0 = No
$allow_html = 1;        # 1 = Yes; 0 = No
$line_breaks = 0;   # 1 = Yes; 0 = No

# If you answered 1 to $mail or $remote_mail you will need to fill out
# these variables below:
$mailprog = '/usr/lib/sendmail';
$recipient = 'you@your.com';

# Done
##############################################################################
Bee

Offline missladybee

  • Spacescooter Operator
  • *****
  • Posts: 45
    • http://www.beadedimages.com
guestbook.pl or guestbook.cgi?
« Reply #1 on: October 28, 2004, 03:38:15 PM »
Yeah, I actually got the guestbook working using guestbook.cgi in my cgi.bin file.  All it needed was the permissions to be changed to 755 after uploading.  

I am still curious, though, what the difference is between guestbook.cgi and guestbook.pl??

Thanks!
Bee

Offline Johnny

  • MR-Disabled
  • Über Jedi
  • *
  • Posts: 1891
guestbook.pl or guestbook.cgi?
« Reply #2 on: October 28, 2004, 09:56:39 PM »
CGI (Common Gateway Interface) is just a  program designed to accept and return data that conforms to the CGI specification. The program could be written in any programming language, including C, Perl, Java, or Visual Basic.