PDA

View Full Version : htdoc or cgi-bin ??


ranchnachos
5-31-05, 08:12 PM
Just curious about which directory my files should go in.

I'm gona be using Wordpress.. and in the Ops section it says the cgi-bin is useful for PHP, perl, scripts and such...

although one would normally use the htdocs, because it "is" the document root afterall..

so which do I use? or does it not matter?

I suppose I'm so confused because I've never dealt with the whole cgi-bin before. i normally just build PHP(script) support into apache itself. less of a hastle that way.

RTH10260
5-31-05, 08:20 PM
Just curious about which directory my files should go in.

I'm gona be using Wordpress.. and in the Ops section it says the cgi-bin is useful for PHP, perl, scripts and such...

although one would normally use the htdocs, because it "is" the document root afterall..

so which do I use? or does it not matter?

I suppose I'm so confused because I've never dealt with the whole cgi-bin before. i normally just build PHP(script) support into apache itself. less of a hastle that way.Your whole website content goes into /htdocs.

If you want to have safe cgi Perl scripts, you can put those into the cgi-bin directory. The server will only display files from within /htdocs, so your script files cannot be viewed there. For executing the cgi script files, use a URL of http://youdomain.com/cgi-bin/thescript.cgi (or an extension of .pl). You can execute Perl scripts from any other directory within /hdocs too.

ranchnachos
5-31-05, 08:26 PM
oh ok. i get it now. thanks :)