Gossamer Forum
Home : General : Perl Programming :

cgi-bin

Quote Reply
cgi-bin
Hello,

How do I add a cgi-bin directory to my web space. My hosting provider says that all I need to do is place the .cgi or .pl files in my web space directory and they will work. I'd like to have a cgi-bin directory. After I create it do I need to chmod it?

Thanks

Quote Reply
Re: cgi-bin In reply to
Uh...sounds like they allow .cgi and .pl scripts to be executed in ANY folder in your account.

If you really want a "cgi-bin"...do the following:

1) Create a folder (either via FTP or telnet) called "cgi-bin" off your ROOT folder.

telnet (prompt> mkdir cgi-bin)

2) Then change the permission of the new folder to 755.

Nothin' to it, if you ask me.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: cgi-bin In reply to
Thanks for the reply. When you say the root folder do you mean usr/home/phil/ or /usr/home/phil/www/?

The second one is where they have placed a welcome page and the first one has other directories off of it for logs and the like.

I'm thinking that I need something like usr/home/phil/cgi-bin/ where I would put my scripts - correct? Then how would I call them in web pages? Would the form action look something like this? "/../cgi-bin/ ?

Finally would placing the cgi-bin at the root allow form actions like http://www.mydomain.com/cgi-bin/script.cgi ?

Thanks

Quote Reply
Re: cgi-bin In reply to
No...actually your "webroot" is /www/, so you would put the cgi-bin folder in /www/ NOT in /phil/.

Regards,

Eliot Lee Wink
http://anthrotech.com/
Quote Reply
Re: cgi-bin In reply to
Thanks, it's working great.