Quote:
|
Originally Posted by valerie69357
Hi,
Its me again. I redid my guestbook on the site and it still doesn't work. It is one of Matt's scripts. My address is http://www.neyouthrodeo.netfirms.com Go to Opinion Page, and give it a try please. I am using GoLive 5-0. Please help me. I would like this to be working soon.
Thanks
Valerie
|
Hi Valerie,
I looked at the page, and downloaded the Guestbook files from Matt's Script Archive. 500 errors are tough to track down sometimes. I've had some that have given me fits. I didn't see anything wrong with the code on your pages, ao I'm assuming there is a configuration problem with the
guestbook.pl file or the file permissions. You mentioned that you set the read/execute permissions on guestbook.pl (chmod 755). Did you set the read/write permissions for
guestbook.html and
guestlog.html (chmod 666)? It didn't record any errors in the log file (guestlog.html) so it didn't get that far into the program. What do you have in the configuration section of
guestbook.pl? The section has this before it's customized for your site:
Code:
$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";
The options below that are either 1 for on or 0 for off, so shouldn't be a problem. The mail configuration (if enabled) below that is like this:
Code:
$mailprog = '/usr/lib/sendmail';
$recipient = 'you@your.com';
Of course, sendmail may not be available on the system.
Those are the most likely places for any problems as far as I can see. I just uploaded the files to my own persoanl home page at
http://balder.prohosting.com/djohnson/guestbook.html and it seems to work okay there, except fot the guestlog.html file. It wrote blank information into that file for some reason. If you'd like any help setting the right variables in the
guestbook.pl then we just need to know what the actual path is to your files. According to the
printenv program on your server space at netfirms, your document root path is
/mnt/web_i/d09/s16/a000pspk/ (though that sounds odd to me) so your config section should look like this:
Code:
$guestbookurl = "http://www.neyouthrodeo.netfirms.com/guestbook.html";
$guestbookreal = "/mnt/web_i/d09/s16/a000pspk/guestbook.html";
$guestlog = "/mnt/web_i/d09/s16/a000pspk/guestlog.html";
$cgiurl = "http://www.neyouthrodeo.netfirms.com/cgi-bin/guestbook.pl";
$date_command = "/usr/bin/date";
If that and the read/write/execute permissions are set right, then it's a more exotic problem. I have a short little environmental variable checking script that you can use to get the proper variables from your own cgi-bin directory so that those paths can be set if those above don't work.
Narasinha