From owner-freebsd-questions Wed Sep 25 18:32:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B87F37B401 for ; Wed, 25 Sep 2002 18:32:54 -0700 (PDT) Received: from smtp012.mail.yahoo.com (smtp012.mail.yahoo.com [216.136.173.32]) by mx1.FreeBSD.org (Postfix) with SMTP id A428243E75 for ; Wed, 25 Sep 2002 18:32:53 -0700 (PDT) (envelope-from ihsan_junaidi@yahoo.com.sg) Received: from unknown (HELO ihsan) (ihsan?junaidi@219.93.196.66 with plain) by smtp.mail.vip.sc5.yahoo.com with SMTP; 26 Sep 2002 01:17:49 -0000 Date: Thu, 26 Sep 2002 09:19:55 +0800 From: Ihsan Junaidi Ibrahim X-Mailer: The Bat! (v1.61) Reply-To: Ihsan Junaidi Ibrahim X-Priority: 3 (Normal) Message-ID: <8532227560.20020926091955@yahoo.com.sg> To: freebsd-questions@freebsd.org Subject: Re[]: Apache CGI problem In-Reply-To: <8665wt1s22.fsf@foo.bar> References: <7110332537.20020926031500@yahoo.com.sg> <8665wt1s22.fsf@foo.bar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello all, Thursday, September 26, 2002, 9:02:45 AM, freebsd-questions wrote: > I think the problem may be with your scripts. Make sure the scripts > are sending the correct HTTP headers to Apache before trying to print > any output. For example: > #!/usr/bin/perl > print "Content-type: text/html\n\n"; # <- This has to precede your output. > foreach $key ( sort keys(%ENV) ) { > print "

$key = $ENV{$key}

"; > } > If you're getting output from the test-cgi script, but not from your > own, then the problem has to be with your script or your config file, > as long as you have their perms set correctly. > HTH, Thanks for your tips. As I had already mentioned before it fubar'ed, all the scripts worked. The system has been up for a month now and it's only until two nights ago, I couldn't get the scripts to work. I wrote quite a few Perl and CGI progs and tested them on this very platform weeks ago and they executed well. For some inexplicable reason, I couldn't get them to work now. I even used my backup httpd.conf copy and still the problem persists. -- Thank you for your time, Ihsan __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message