Web Hosting Talk







View Full Version : cgi bin question...tagboard tutorial


cincyJess
07-08-2003, 03:39 AM
I'm trying to set up a tagboard for a friend and the files needed are:

tag.html
board.shtml
tag.txt
tag.cgi

I'm not very familiar with the usage of the cgi-bin, so I'm confused as to whether tag.cgi needs to be uploaded to a cgi-bin or if anything special needs to be done. I know the path of the cgi bin needs to be specified, but I don't know where. I'm also not sure whether the other files are supposed to be uploaded to a regular directory or what. I have a readme, but it's not very helpful. Can anyone give me clearer instructions? Thanks in advance, from someone who is still learning!

Jess

jundy
07-08-2003, 06:04 AM
Without seeing the instructions and without knowing about the server I can tell you this:
tag.cgi needs to go into the cgi-bin directory and chmod to 755
Unless the web server is set up differently the only place where cgi programs/scripts can be executed is the cgi-bin directory.

The .html and .shtml files should be put in the regular directory.

It depends on what tag.txt is being used for as to where it goes. My gut tells me it is probably being used by tag.cgi so it should go in the cgi-bin dir.

As far as having to specify the cgi-bin dir path: it probably has to be specified somewhere in tag.cgi but without seeing the file I couldn't tell you where. If it was written a decent programmer then the varialbe should either be commented or named in a way that is would make sense that it is cgi-bin's path.

Hope that helps,

cincyJess
07-08-2003, 02:13 PM
jundy,

yes, that did help! Even though I couldn't be more specific it still helped a lot. Thank you very much. I'm really eager to learn more about all these scripting languages, and the ins and outs of building a website! I think the best way will be to just go for it and learn while I'm building it. Thanks for the help, I'm sure I'll be around here quite a bit now that I've found this forum!

Jess