your apache is not properly configured and doesn't
recognize /cgi-bin/ as de facto directory for
executing scripts.
If your script isn't in the appropriate directory
(like /html) then it is regarded as compliant mime
type and its content is being retrieved.
Look at apache config file and move your script to
/cgi-bin.

--- "Frank J. Schmuck" <[EMAIL PROTECTED]> wrote:
> I've installed a Linux box (RedHat 7.1) on a local
> network to test cgi
> scripts.  The apache install creates the following
> directories:
> 
> /var/www/html
> /var/www/cgi-bin
> 
> the html is the default entry point.  If I place a
> html file in the above
> directory a machine on the network can pull up the
> file in a browser.  If I
> place a *.cgi file in the html directory a remote
> browser can bring the file
> up but it displays the code and does not execute the
> program.
> 
> If I place the *.cgi file in the www/cgi-bin
> directory the browser can not
> locate the directory.
> 
> What am I doing wrong?
> 
> Thanks
> Frank
> 


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to