Author |
Message |
25/04/2003 16:26:49
|
Anonymous
|
I know you have seen this a hundred times all ready,
Cannot create ID file guest_id.txt in /cgi-bin/guestbook.pl . Please check your base directory.
Ok i know its a base dir error and all i need to do is put in my base dir right! the problem is i have know idea what it is, the server that we have our web site on winnt server,and our root directory is //as1clan.recongamer.com/ i have tried that but does not work
If anyone is kind enough to have a look at the site to see the error you will see the server set maybe someone will see the correct base dir.
http://as1-clan.recongamer.com/book/addentry.html
Tagg
|
|
25/04/2003 17:55:04
|
Hawkslayer
Beginner
Joined: 26/10/2002 16:00:35
Messages: 42
Location: Georgia USA
Offline
|
Save this script as a cgi, I usually name it basedir.cgi, put it in your cgi-bin and run it. Should give you the base directory.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Document Root is: ";
print $ENV{'DOCUMENT_ROOT'};
|
Hawkslayer
http://www.fuchsialand.co.uk |
|
26/04/2003 02:07:05
|
Anonymous
|
Thanks Hawkslayer it did not work, i did what you said but it returned zero info it printed to screen "Document root" thats all nothing else.
And i thought this would be easy i have done heaps of forum in perl and java. but this one has me stumpt no use to windows servers.
Tagg
|
|
26/04/2003 10:49:47
|
Hawkslayer
Beginner
Joined: 26/10/2002 16:00:35
Messages: 42
Location: Georgia USA
Offline
|
I just tried the script again on three sites. It works on them all. Maybe your host has some kinda security in place to prevent you accessing it? Has anyone else tried this script Let me know the results please.
|
Hawkslayer
http://www.fuchsialand.co.uk |
|
27/04/2003 04:39:59
|
Anonymous
|
well i think i found the base directory,but now when i run the guestbook i get these errors iam still not sure if it is the correct dir.
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Scalar found where operator expected at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face"
(Might be a runaway multi-line "" string starting on line 26)
(Missing semicolon on previous line?)
syntax error at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face "
Execution of g:\inetpub\as1-clan\cgi-bin\guestbook.pl aborted due to compilation errors.
Is anyone else trying to run this guestbook on a winnt server ???
Tagg
|
|
27/04/2003 04:40:31
|
Anonymous
|
well i think i found the base directory,but now when i run the guestbook i get these errors iam still not sure if it is the correct dir.
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Scalar found where operator expected at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face"
(Might be a runaway multi-line "" string starting on line 26)
(Missing semicolon on previous line?)
syntax error at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face "
Execution of g:\inetpub\as1-clan\cgi-bin\guestbook.pl aborted due to compilation errors.
Is anyone else trying to run this guestbook on a winnt server ???
Tagg
|
|
27/04/2003 04:41:44
|
Anonymous
|
well i think i found the base directory,but now when i run the guestbook i get these errors iam still not sure if it is the correct dir.
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
Scalar found where operator expected at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face"
(Might be a runaway multi-line "" string starting on line 26)
(Missing semicolon on previous line?)
syntax error at g:\inetpub\as1-clan\cgi-bin\guestbook.pl line 45, near "$font_face "
Execution of g:\inetpub\as1-clan\cgi-bin\guestbook.pl aborted due to compilation errors.
Is anyone else trying to run this guestbook on a winnt server ???
Tagg
|
|
27/04/2003 04:49:34
|
Tagg
Newbie
Joined: 27/04/2003 04:44:20
Messages: 3
Offline
|
oops sorry about the mult post, darn internet lol
Tagg
|
|
06/05/2003 06:46:15
|
Tagg
Newbie
Joined: 27/04/2003 04:44:20
Messages: 3
Offline
|
Oh well no one seems to be able to come up with a solution for this problem of not being albe to find the base dir i must assume this bit of software never worked in the first place thats why the advance version was brought out.
Tagg
|
|
06/05/2003 16:07:51
|
Anonymous
|
Hi, i am wondering if the guestbook 1.5 is compatible with apache 1.3.27 that i am running at the moment in windows 2000.
do i have to change anything to make it works.
why cant the script create id in the directory that i specified.
is there a restriction on windows apache tat makes it doesnt work properly?
thank you for any inputs.
|
|
06/05/2003 16:58:24
|
Tagg
Newbie
Joined: 27/04/2003 04:44:20
Messages: 3
Offline
|
Well join the club mate iam having the same problem, Try this to find your base dir or your root dir and add it to your guestbook.pl
[Save this script as a cgi, I usually name it basedir.cgi, put it in your cgi-bin and run it. Should give you the base directory.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Document Root is: ";
print $ENV{'DOCUMENT_ROOT'};]
Cheers
Tagg
|
|
|