PDA

View Full Version : cgi-bin



Tool is God
July 13th, 2001, 20:46
Hi,

My web host offers CGI, but when I login there's not CGI-BIN. Should I just go ahead and create a directory named CGI-BIN and if so, what should I chmod the dir to?

Thanks.

Unknownguy
July 13th, 2001, 20:52
what host you using?

Dedix
July 13th, 2001, 21:49
if your host allows you to put perl files anywhere in your dir, then you shouldn't create cgi-bin dir, although you create one if you want
if doesn't, then you should create one
all perl files and dirs where you put them (e.g. cgi-bin) you have to chmod to 755 (make executable)

GrassHopper
July 13th, 2001, 23:01
In some servers, if you create cgi-bin yourself cgi scripts wont work
you can see only source of them :)
You should talk to person who is responsible for the web server
Because he/she(i dont know any who is working as a webadmin :p ) has to configure your cgi-bin settings

Good luck
:D

fatman
July 14th, 2001, 01:28
It is also possible for the cgi-bin directory to be aliased outside the publicly accessible web tree (eg, in the directory above the htdocs directory).

gyrbo
July 14th, 2001, 04:39
Just put a small script in your root and try to run it. IF it works, you can use perl outside the cgi-bin