guestbook scripting problems

  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

http://guestbook.bigwebmaster.com/ is where i got the script. here are the instructions it came with. i used ws_ftp to chmod everything they wanted...but for some reason, when i access the administrators page, the password thing doesn't seem to work. wat's wrong? could it be because i have to upload in ascii mode? how do you do that?

Quote:
There are basically three areas to this script.
There is the admin.cgi interface which allows you to manage the entries.
There is the addguest.cgi script which allows your visitors to leave their thoughts on your site,
and lastly there is the viewguest.cgi script which allows other visitors to see the comments that have been left by others.

You will need a program which can decompress zip files. I recommend WINZIP ( http://www.winzip.com/ ).
After opening the zip file make sure the files listed at the end of this document are all included in the package.
Once you are sure they are all there make a directory on your server called "guestbook"
and upload every single file from the guestbook zip file into this directory.

After uploading every file you will need to change file permissions to a few files (chmod).

755 admin.cgi
755 addguest.cgi
755 viewguest.cgi
777 guestbook.dat
777 id.dat
777 variables.cgi
777 tpassword.dat
733 adminlog.dat

Please make sure you upload tpassword.dat in ASCII mode.
If you are unsure how do to this visit http://www.ozzu.com/ and post your question for further assistance.

At this point everything should be set to work.
We have produced template files which are already in working order for you and you are welcome to use those.
If you wish to customize your own template files, please read the manual at:

http://guestbook.bigwebmaster.com/

The last thing you should do is load your web browser and goto

http://www.yoursite.com/guestbook/admin.cgi

where yoursite.com is actually your site.
If you see a login screen then you are all set.
The default password is admin.
One of the first things you should do is enter the script and change
the password to something else.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Did you verify the chmod kicked in and actually made the permission changes? I have known for some time that I can't chmod anything on a Windows server with WS_FTP Pro, and have recently discovered that about the only servers I can chmod with WS_FTP Pro are linux and unix ones.

I can do it anywhere on any type of server with CUTE FTP. In addition, with Cute I can delete entire directories with one click. With WS_FTP Pro I have to delete all the internal files before a directory can be deleted (because it has to be empty). In my opinion CUTE is the better FTP proggy.
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

well on the attributes it says it's been changed...i'll try cute ftp

i'll post if it works
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

how do you upload in ascii format?

i think that may be the problem
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

ok that wasn't the problem...

is it possible if you downloaded the program, and tried it yourself?

if it works for you, mebe u can upload for me onto my ftp

thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I don't have it and unfortunately don't have the time to try to. If I'm not mistaken, I think Bigwebmaster wrote that script so, he should be able to help you figure it out when he sees this.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

I have it and I can tell you, that if you followed Bigweb's installation
instructions, it would work for you.

What do you mean when you say that the password thing doesn't work?
Can you see the admin page itself? do you get an error? what does it
say?

Posting and saying "it doesn't work," ...well...doesn't work.
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

well...when i type it in, i automatically go to the scripting...as in...i see the scripting...i don't see the page i'm supposed to see...

is it possible that i could get you to upload what you have slightly modifeied onto my ftp? i'm so frustrated by this
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

so you can see the admin login field, you type can type in the password,
but when you hit submit it shows the code??

If it shows the code, you will need to make sure you have the proper
htaccess file in the guestbook directory with all the cgi scripts to run
properly.

And are you sure you uploaded all the files in ascii mode that are required
to be?
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

no i dont' even see the login page...no password page or anything...just goes directly to the code when i enter the link...argh

i uploaded all files in ascii mode using cuteftp

unflux...u think mebe you can upload them for me as you have the correct configuration already?
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

no, sorry you should really get this done yourself.

and what you just told me in 1 simple sentence, tells me all I need to know.
You need to upload the appropriate htaccess file to allow cgi to run
outside of the cgi-bin.

What you need to do is open Notepad, and put this code in it
Code: [ Select ]
Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
  1. Options +ExecCGI
  2. AddHandler cgi-script .cgi
  3. AddHandler cgi-script .pl

now go to file, save as. change the file type to All files, and remove
the .txt extension in the filename field. Name the file '.htaccess' with the
period, just like that, but no quotes obviously.

Upload that file to your guestbook directory, and it should work as long
as your chmod settings are correct.
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

what if i put the files in a cgi-bin folder? so i just change the file dir...then the code is not necessary then rite? my server won't let me upload any htaccess files...damn rutgers
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

damn it, that didn't do anything...

damn it!
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

kikassboy wrote:
no i dont' even see the login page...no password page or anything...just goes directly to the code when i enter the link...argh



This is clear to me. What he's saying here is that he is seeing the file as text code, and that is a clear indication that permissions are not set correctly. Recheck permissions per the install instructions via CUTE FTP, and when you look at them and they are not the same as what you remember changing them to, then you do not have authority to change the permissions at your host. At which point you'll need to speak with them.

This is not an upload issue this is a permissions issue. Currently the files he's trying to access are read only.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

and he will probably still need the htaccess file.

Sorry buddy, but you just keep running back here with "that didn't work"
in hopes that someone is going to do it for you. I hope no one does,
because to me that's just lazy. If you spent more effort doing what we
have all tried to tell you to do, then it would be done already.

I'm not trying to sound rude, just telling it like it is.
  • kikassboy
  • Newbie
  • Newbie
  • kikassboy
  • Posts: 10

Post 3+ Months Ago

i understand...:/ oh well...

but i meant that rutgers is not letting me upload the htaccess files...but it's all rite, i think i'll figure it out
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

in case it helps, if rutgers is using a Windows server which they probably are, you will not be able to use the htaccess file, nor will you be able to use this guestbook if that is required. If that's the case skip it and move on.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

UNFLUX wrote:
no, sorry you should really get this done yourself.

and what you just told me in 1 simple sentence, tells me all I need to know.
You need to upload the appropriate htaccess file to allow cgi to run
outside of the cgi-bin.

What you need to do is open Notepad, and put this code in it
Code: [ Select ]
Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
  1. Options +ExecCGI
  2. AddHandler cgi-script .cgi
  3. AddHandler cgi-script .pl

now go to file, save as. change the file type to All files, and remove
the .txt extension in the filename field. Name the file '.htaccess' with the
period, just like that, but no quotes obviously.


Hmmm...looks like this is the ticket. Sorry, UNFLUX for rambling afterwards. I just saw that. Must have overlooked it before. But the extra info I gave is profitable. So be it.

Upload that file to your guestbook directory, and it should work as long
as your chmod settings are correct.

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: Liamw411 and 124 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.