If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Guestbook 1.5 help with error please  XML
Forum Index » Support Forum
Author Message
Anonymous



I am trying to get the guestbook 1.5 to work on my website, however when i try to add a new entry, an error page comes up saying the following:
Guestbook - Error
Cannot create ID file guest_id.txt in /home/usr/you/book. Please check your base directory.

In the readme instructions, under part 1, it states to change the first line in guestbook.pl to the location of the perl program on the server, then lists some examples of that, and then just randomly says "set the correct paths and required URL's.
Is there something else within the guestbook.pl i am supposed to change other than the first line for the place of the perl program on the server?

PLEASE PLEASE PLEASE HELP

thanks
lmf33
Beginner

Joined: 18/01/2004 23:18:34
Messages: 12
Offline

I just installed the same guestbook today, the same thing happened.

This is what I had to do to get it to work for me.

Instead of this

$base_dir = "/home/usr/you/book"; (you is your user name to your webserver)

I put in this

$base_dir = "/home/you/public_html/book";

Try that.

That didn't work completely for me so I had to set permissions for

guest_id.txt
guestbook.html
page_id.txt
template.html

To 777

guestbook.pl goes in the cgi-bin, upload in ASCll and permissions to 755
jlevans
Newbie

Joined: 29/01/2004 07:29:24
Messages: 1
Offline

I am also having the same problem, however I set the base_dir variable to /book. As far as I can tell, book sits on the root. I have my own domain and when I ftp in I don't have to go into public_html. Any ideas??
Anonymous



i have the same problem!!!
Anonymous



You can always ask your hosting provider for the path.
Most users have a shared server, because the hosting fee is cheaper.
So in your eyes you only see your part but in reality you just have a directory on the server.
Anonymous



I have the same problem here...
Can somebody please help me? You can mail me at: lizzyhouben@hotmail.com

Thanks!
Anonymous



I have the same problem. Please show me the correst path for base directory in guestbook.pl Thanks!
Anonymous



I am having the same problem, and have contacted my hosting provider for the path. I have not received a response, so is there any way I can figure this out myself? Please help! Thanks!!
Anonymous



I have figured it out, everyone! Instead of using the full path from the root, I just used a relative path!

For example, guestbook.pl is in /cgi-bin and it needs to know where /book directory is. Since /book and /cgi-bin are both directories at the root level (for me), I made $base_dir = "../book"

HTH, I'm soooo excited to get this working!
Anonymous



seem some people having probs with the guest book, see if this helps.

first two place in the guestbook.pl u need to modify are the
# url of script
$cgiurl = "http://yourhost/cgi-bin/guestbook.pl";

# base url to all guestbook files without trailing "/"
$bookurl = "http://yourhost/book";

so would look something like this
# url of script
$cgiurl = "http://www.teamoxygen.co.uk/cgi-bin/guestbook.pl";

# base url to all guestbook files without trailing "/"
$bookurl = "http://www.teamoxygen.co.uk/book";

next place to modify

# base directory to all guestbook files from the server root without trailing "/"
$base_dir = "/home/usr/you/book";

If you do not know this then here's a way to find out. Open notpad and write the following in

#!/usr/local/bin/perl

print "Content-type: text/html\n\n";
print "Document Root is: ";
print $ENV{'DOCUMENT_ROOT'};

Then save file as pathfinder.pl Once you have done that upload this to your server in ASCII mode and place in the same folder as your guestbook.pl. please check that the pathfinder.pl is not pathfinder.pl.txt if it is then right click and go to rename and delete the txt bit off. Now you need to chmod to 777 rwxrwxrwx. launch internet browser and type in the url to the pathfinder.pl You should now get the information u need copy and past in to the guestbook.pl

# base directory to all guestbook files from the server root without trailing "/"
$base_dir = "/home/usr/you/book";

So the section above delete home/usr/you and past the information you got from pathfinder.pl

If by any chance the pathfinder did not work then check the following
this is correct for you #!/usr/local/bin/perl
check pathfinder.pl is not on server as pathfinder.pl.txt

That should be all u need to do now
Make sure u upload guestbook.pl in ACSII and chmod to 755
and the following files to 777
addentry.html
guest_id.txt
guestbook.html
page_id.txt
template.html

Hope this helps any probs contact leonac17@hotmail.com
Anonymous



i got this information from my provider:...

What is the path to Perl?
/usr/bin/perl


My perl/cgi script asks for the absolute path to my site, what is this?
/home/domains/<mydomain.com>/user/htdocs

where <mydomain.com> is the name of your domain without the www..

If you are on an Envisage Linux domain the path is:
/home/nasxx/<m>/<mysite.co.uk>/user/htdocs

What is the path to sendmail?
/usr/sbin/sendmail


how do i use this info to get my guestbook working?
i'm very confused!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum