Click to See Complete Forum and Search --> : CGI filname problem!


drpepperisgood
12-12-2001, 12:58 AM
I am trying to add a cgi guestbook to my site, but I cannot name my file .cgi because none of the word processors support it, it ends up being .txt or .cgi.txt. How do I make a filename of .cgi without the .txt or any other filname?

------------------
Jesus Christ is my Lord and Savior, and he wants to be yours too!!

drpepperisgood
12-12-2001, 01:02 AM
I call the file gb.cgi

I would like to get this up tonight!

------------------
Jesus Christ is my Lord and Savior, and he wants to be yours too!!

Check out my new Site (http://www.idosomethingdifferent.com)

Begby
12-12-2001, 08:00 AM
Just edit it, then when you are done just right click on the file and rename it to fb.cgo.

------------------
--------------------
"Log, its better than bad, its good!"

drpepperisgood
12-12-2001, 07:34 PM
OK I've got anouther question.

When I go into telnet to turn on the cgi file it can't find it, I try gb.cgi, gb.txt, gb.cgi.txt, so what's up eith that.

------------------
Jesus Christ is my Lord and Savior, and he wants to be yours too!!

Check out my new Site (http://www.idosomethingdifferent.com)

Begby
12-13-2001, 04:46 PM
Please clarify...

What exactly are you trying to do with telnet and this file? Are you trying to upload it somehow? Is this the windows telnet or a 3rd party?

???....

------------------
--------------------
"Log, its better than bad, its good!"

drpepperisgood
12-13-2001, 07:34 PM
Sorry I am trying to put a cgi discussion group, like the one found at htmlgoodies.com (http://www.htmlgoodies.com/beyond/disgroup.html)

I log into the windows telnet and I can't locate this gb.cgi file. THey say I need to go in there and set it's modification to 755 like so:

chmod 755 wwwboard.pl

First of all what does this do, and why can't I do it. When I try to it says no such filename. So I try gb.cgi, gb.cgi.txt, gb.txt, because as was the original question i had trouble with the filnames. I can do most of what they said to do in the telnet through the ftp client, but I don't even know what this is. I tryed loading the page with out doing it and it says there is a page error.

Any Ideas


------------------
Jesus Christ is my Lord and Savior, and he wants to be yours too!!

Check out my new Site (http://www.idosomethingdifferent.com)

Begby
12-13-2001, 08:46 PM
Ahhh...

Well you first need to upload the file to the server using ftp, make sure you put it in the right directory. If you don't know which directory to put it in, contact your ISP.

Next telnet to the server. After you connect, you can do an 'ls' command to list the files in your current directory, and 'cd dirname' to change to a different directory to find your file. So if you ftp the file to say cgi-bin, then you may have to do a 'cd cgi-bin' to switch to that directory, then ls to make sure your .cgi file is in that directory.

After you find your file, then do the chmod command like they said. The chmod command sets the rights on the file so that the file can be opened and run by people accessing the website.

You may want to look on the internet to find some tutorials on basic unix commands (the commands you need when you telnet).

I hope this helps, post again if you still have trouble.

------------------
--------------------
"Log, its better than bad, its good!"

drpepperisgood
12-13-2001, 11:34 PM
I must be diong something wrong, because when I log in and hit ls it brings up the same prompt. If I hit cd .. it brings up the same prompt then if i hit ls after cd .. it brings up this huge list of probably 100 user names and mayber passwords or email addresses in two colums, there is no particular order to it.

Then if i hit cd .. and ls again it brings up this list of 18 maybe file names:

"backup boot etc lib mnt proc sbin tmp var bin dev home lost+found opt root ssh-3.0.1 web"

I have no idea what they are or where they came from. but i can hit like cd bin, not cd cgi-bin it says no such filname, and get a list of maybe 120 different files like the ones above.

So basically i get no where, i can't locate any files on my website, or even any directories. And right now I have a cgi-bin, site, wwwboard, and logs directories in my ftp client.

sorry if this was confusing i don't really understand it either, any ideas!

Thanks again

------------------
Jesus Christ is my Lord and Savior, and he wants to be yours too!!

Check out my new Site (http://www.idosomethingdifferent.com)