Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!usenet.eel.ufl.edu!news.mathworks.com!hunter.premier.net!news1.erols.com!news From: Ken Bigelow <kbigelow@www.play-hookey.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Help with Apache Date: Thu, 22 Aug 1996 13:50:46 -0700 Organization: Erol's Internet Service Lines: 47 Message-ID: <321CC826.6179@www.play-hookey.com> References: <4ut3rj$jhj@murphy2.servtech.com> <4vh645$7j6@news.kth.se> NNTP-Posting-Host: kenjb05.play-hookey.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.02 (Win16; I) Tomas Gustavsson wrote: ; ; In article <4ut3rj$jhj@murphy2.servtech.com>, ; pygmy@cyber3.servtech.com (hoo-chuan tan) writes: ; >I'm running and BSD machine, and trying to get Apache v1.1 to work ; >properly with it. Apache lets me access all my web pages on the ; >machine, however, I'm having difficulty getting Apache to run CGI ; >scripts properly. Can someone please tell me how to set up Apache ; >properly such that the CGI scripts are being run? ; > ; >Miscellaneous information: ; >I believe I've set up all the proper configuration files in access.conf ; >and httpd.conf. However, when I try to access the cgi-bin directory, it ; >says that the cgi-bin directory was not found on the server. ; > ; >Thanks for your help in advance! ; ; There should be no problems, I have it working perfectly. ; ; You must have the line: ; ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/cgi-bin/ ; in the srm.conf file (it is commented in the example files). ; ; The check that the cgi-bin directory exists in the htdocs directory ; and is WORLD readable. ; Not quite valid for the normal FreeBSD setup using Apache (which is what my site is running now). The .tgz distribution in the packages will run directly "out of the box." If you get the general distribution from http://www.apache.org/ , you'll need to edit the Configuration file and you'll also need to adjust the base pathway in httpd.h . The normal location in FreeBSD is under /usr/local/www , with the data/ directory holding .html files and the cgi-bin/ directory holding your scripts. I haven't needed any other adjustments to use CGI. One thing: make sure that your CGI scripts are world-readable, not just world-executable. Use chmod 755 to set them. Otherwise they won't run. -- Ken Are you interested in | byte-sized education | http://www.play-hookey.com over the Internet? |