[ back to toc ]

Setting up a guestbook

Date: 2002/05/12 20:09

Q:
Hello there :)

I noticed from 'allerxperts.com' you are offering help with cgi scripts
and I wonder if you can help me.

you are one of three people offering help on 'allexperts.com' I have
approaced for help...

I need to know how to get a guest book up and running on my server. My ISP
does allow CGI scripts to be run, and the one I have working at the moment
(an email form)
runs OK as a pop-up window on my home page.

http://wwww.kitachi.info

I have uploaded two files:

1) gbook.html which has been ftp'd onto the main directory of my server,
in ASCII mode
with the permissions set to 644 (read/write for all).

I think the correct unix server path for ths file is:
/kitachi.info/gbook.html (though this might be incorrect and this could
be the main problem)

2) bnbbook.cgi gbook.html which has been ftp'd onto a folder labled
'guestbook' which is in a folder labled cgi-bin in the main directory of
my server. This has also been uploaded in ASCII mode but with the
permissions set to 775 (Owner can read/write/execute, and group and others
can read and execute).

I think the correct unix server path for ths file is:

/kitachi.info/cgi-bin/guestbook/bnbbook.cgi

This is the path I've entered to the script attached to the form in this
file.
You can see what I'm trying to do if you goto:

http://www.kitachi.info/gbook.html

Then try and submit the form.

Basically , I think that when the form is submitted from the html to the
cgi script, the cgi needs to look back through the folder directory and
pinpopint the gbook.html file (using the unix path).

Trouble is that the cgi script can't find the gbook.html file for some
reason. I know this because when I try and submit anything from the form
in my browser, I get this message:

'Unable to locate your guestbook file
Please check that /kitachi.info/gbook.html is the correct path and name '

The message is part of the cgi Script, so I know somthing is working ok !!

I know I have entered the correct mail handler script, because I got this
from my ISP

http://www.nicnames.co.uk

I've asked the tech support at my server about setting up this guestbnook
but they aren't much help.

I've literally spent days on this and it's starting to drive me insane !!!

I downloaded the actual guestboook files and info from here:
http://bignosebird.com/carchive/bnbbook.shtml

I am aslo wondering if the actual html download they give you is correct,
because the guest book they supply has no 'submit' button (I added my own)
and there is no- where
to read your (and others) guestbook entries from once you have submitted
the form.

If you could help me out here or at least point me in the right direction,
It wouild be very much appreciated !

I'm pretty handy with Illustrator, Photoshop etc and I'd be very happy to
return the favour in the future

Thank you very much in advance :O)

Kind Regards

*NAME-DELETED*

A:
>>>
1) gbook.html which has been ftp'd onto the main directory of my server,
in ASCII mode
with the permissions set to 644 (read/write for all).
<<<

the permission 644 is -rw-r--r-- aka: rw for owner, read for group and
others.

>>>
with the permissions set to 775 (Owner can read/write/execute, and group
and others can read and execute).
<<<

the permission 775 is -rwxrwxr-x, which means: owner AND group can read
write and execute, others can read and execute.

>>>
I think the correct unix server path for ths file is:

/kitachi.info/cgi-bin/guestbook/bnbbook.cgi
<<<

I would be amazed if it proved to be so. It would be one of the strangest
UNIX setup. Although there is nothing that would prohibit that it would be
unusual and strange. This is most probably something like

/var/www/kitachi.info/cgi-bin/guestbook/bnbbook.cgi

The same holds for the HTML file.

As far as I could see on the web you have already solved the issue in the
mean time. Even though I felt is worthful to write the mail.

Regards,
Peter

[ back to toc ]