Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 09:17:51 AM

Pages: [1]   Go Down
  Print  
Author Topic: TRYING to install guestbook script...  (Read 727 times)
Matt2005
Pong! (the videogame) Master
*****
Offline Offline

Posts: 24


« on: February 10, 2005, 04:08:25 AM »

I'm trying to install a CGI guestbookscript, from a reputable scripts web site. Its from here: Script Archive - but whenever I try and add paths to various files/directories, they NEVER work!! The helpdesk/email support here hasn't been able to help me... so what am I doing wrong??

Here is the information required: (from the readme file of the script)

$guestbookurl = "http://your.host.com/~yourname/guestbook.html"; - The url address of your guestbook.html file

$guestbookreal = "/home/yourname/public_html/guestbook.html"; - The system location of your guestbook.html file

$guestlog = "/home/yourname/public_html/guestlog.html"; - The system location of your guestlog.html file

$cgiurl = "http://your.host.com/cgi-bin/guestbook.pl"; - The url portion of the address to the guestbook.pl file

Any help appreciated!
Logged
katrina1
Guest
« Reply #1 on: February 10, 2005, 06:20:38 AM »

Hi. To help, we would need to know the folder it is installed in.

If you put everything in the folders they show there, change where it says "yourname" to your cpanel username. Where it says "your.host.com" change it to your domain name.

The guestbook url if installed in public_html should actually be:
$guestbookurl = "http://yourdomain.com/guestbook.html";
Logged
Matt2005
Pong! (the videogame) Master
*****
Offline Offline

Posts: 24


« Reply #2 on: February 10, 2005, 07:32:19 AM »

Thanks for your help.

I've changed the paths now, but now hwne submitting the form to the gustbook.pl file in the cgi-bin, it comes up with an internal server error! I've set the permissions the .pl file to 755 (as it tells me to set the file to 'read/execute', I've also tried 555 too, no change.

Any ideas??
Logged
stephan
Guest
« Reply #3 on: February 10, 2005, 07:46:31 AM »

Agh, Perl (cgi) is a nightmare. The dreaded "internal server error" which doesn't really give ANYTHING away as to what the problem might be!

Have you thought about using a PHP script? There are some great (easy to install) guestbooks at www.hotscripts.com

An important thing to remember when installing a guestbook based on a text file instead of a database is that you have to make the text file writeable. This can be done through your FTP client or the Cpanel file browser.
Logged
Matt2005
Pong! (the videogame) Master
*****
Offline Offline

Posts: 24


« Reply #4 on: February 10, 2005, 07:53:21 AM »

Quote from: stephan
Agh, Perl (cgi) is a nightmare. The dreaded "internal server error" which doesn't really give ANYTHING away as to what the problem might be!

Have you thought about using a PHP script? There are some great (easy to install) guestbooks at www.hotscripts.com

An important thing to remember when installing a guestbook based on a text file instead of a database is that you have to make the text file writeable. This can be done through your FTP client or the Cpanel file browser.


Well I'm new to PHP, CGI, etc. (as you can probably tell!), but willing to learn, although it doesn't look hopeful so far...

In actual fact, I'm thinking of installing the 'advanced guestbook' on cPanel, I've used it before with few problems. Is this a good move?
Logged
stephan
Guest
« Reply #5 on: February 10, 2005, 08:09:45 AM »

That might be easier.

I always say (often!) that PHP is more worthwhile learning than Perl (cgi). It is just so much easier and very flexible.

(argueably)
Logged
katrina1
Guest
« Reply #6 on: February 11, 2005, 01:38:07 AM »

The permissions should be 755 on the script. Check the path to perl which is usually the first line in the script and be sure it is set to /usr/bin/perl. If it is anything else, change it.

You may also get the error if the script was not uploaded in ASCII mode. While many FTP clients will do it right in auto mode, it is best to reupload the script while forcing your FTP progarm into ASCII mode. Then change the permissions and edit the paths if you haven't already.

Do not edit with Word or Wordpad or any other word processor. They add extra characters you won't see. Use Notepad or a text/script editor.
Logged
Stephanie®
Master Jedi
*****
Offline Offline

Posts: 1096



« Reply #7 on: February 16, 2005, 01:50:11 PM »

Make sure the "shebang" (top line of your script) reflects the correct path to perl:
Code:
#!/usr/bin/perl

You can also invoke the servers "carp" module to print out a better error message in your browser by using the following
Code:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);

And yeah what dani said to the rest of it Smile
Logged

Pages: [1]   Go Up
  Print  
 
Jump to: