*BSD News Article 48389


Return to BSD News archive

Path: sserve!euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!news.ip.net!server.esva.net!server.esva.net!thom
From: Thom Henderson <thom@esva.net>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: Re: BSDI WWW Server not running my scripts
Date: Sun, 6 Aug 1995 00:08:51 -0400
Organization: The Eastern Shore of Virginia Network
Lines: 19
Message-ID: <Pine.BSD/.3.91.950806000414.22673A-100000@server.esva.net>
References: <4001ck$2d3@nt.colmicrosys.com>
NNTP-Posting-Host: server.esva.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
In-Reply-To: <4001ck$2d3@nt.colmicrosys.com> 

On 5 Aug 1995, eNET Staff Member wrote:

> I'm using BSDI 2.0 for my o/s on my WWW server and can not get my scripts
> to execute.  I thought my configuration files where correct, but I guess
> not.  Any help anyone? 

Check /var/log/httpd/error_log for any error messages.  Also try making a 
script echo debugging messages into a file so you'll know if (a) the 
script is not running, or (b) it's running, but you don't see the output.

If the latter, don't forget the header.  Either "Content-type: text/plain"
or "Content-type: text/html" followed by a blank line.  A script that 
returns a generated web page should begin with:

	echo Content-type: text/html
	echo


If it doesn't, you get a "malformed header" message in error_log.