Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is cgi-bin?

Status
Not open for further replies.

josel

Programmer
Oct 16, 2001
716
US
Howdy!

I am trying to get started with Apache and Perl under SCO unix 5.0.6. I am reading a book "Perl for Web Site Management" to learn about perl. The box already has both Perl and Apache installed.

I have never messed with eigther one of these and have no idea where to start. In order for me to test and start writing sample scripts, I need to place them in a directory with proper permissions. Doing so would not be a problem except that, I do not know how apache would react to using just any directory.

Besides, it appears that cgi-bin is the directory to use. I do not assume that it already exists but wonder where would it be best placed and with what permissions and ownership.

Your assistance will be truly appreciated.

Regards;



Jose Lerebours


KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
Funny, the first thing that came to mind was
"Where is httpd.conf?" Of course, a find was
the ticket to find it.

I was not able to truly understand this file but
I will follow on your advise and read through the
online docs.

I did, however, found that root directory for my
server is /usr/internet/ns_httpd/httpd-80/htdocs

Once I found this, which I did by searching for index.html,
I figure that cgi-bin can be here or anywhere within the
tree there on.

This is cool. I now have the initial foundation to start
playing around and learn some Perl. Of course, in the
process, I will see to it I actually install Apache and not
this FastStart thingy I know I have.

Regards;


Jose Lerebours



KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
 
take a look in httpd.conf to the line "scripalias /cgi-bin/ /path/to/cgi-bin/". There are your CGI scripts. Depending of your httpd configuration you can use perl, compiled C/C++, etc.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top