cgi-bin folder in 10.4.11

I'm running 10.4.11 (the regular edition, not server) and I'm running a small website through the personal web sharing feature. I want to integrate a perl script. Do I create a cgi-bin folder in the root folder of my website and put the script in there, or is the cgi-bin folder I'm looking for elsewhere? Thanks.

G4 (AGP Graphics), Mac OS X (10.4.11)

Posted on Nov 22, 2007 1:26 PM

Reply
3 replies

Nov 22, 2007 4:45 PM in response to Sawtooth501

The standard location for cgi scripts is in /Library/WebServer/CGI-Executables

That's where apache will look any time it sees URL that begins with /cgi-bin

For security reasons you don't want to have cgi scripts in your main web content directory. You can do if you want (or you can use any other directory on disk), but you'll need to edit the apache configuration file in order to do so.

Nov 23, 2007 10:27 AM in response to Sawtooth501

So where is the apache config file?


/etc/httpd/httpd.conf

Also, by main web content directory, do you mean the root folder of my website, the folder that you mentioned above, or some other folder?


I mean whatever folder you're using for your web content - by default that's either /Library/WebServer/Documents, or the 'Sites' directory in individual user's home directories.
My point is that any CGI scripts should be outside of the normal web content.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

cgi-bin folder in 10.4.11

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.