From owner-freebsd-questions Wed Sep 25 17:15: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 90FB037B404 for ; Wed, 25 Sep 2002 17:15:53 -0700 (PDT) Received: from smtp015.mail.yahoo.com (smtp015.mail.yahoo.com [216.136.173.59]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E28143E6E for ; Wed, 25 Sep 2002 17:15: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 00:14:48 -0000 Date: Thu, 26 Sep 2002 03:15:00 +0800 From: Ihsan Junaidi Ibrahim X-Mailer: The Bat! (v1.61) Reply-To: Ihsan Junaidi Ibrahim X-Priority: 3 (Normal) Message-ID: <7110332537.20020926031500@yahoo.com.sg> To: freebsd-questions@freebsd.org Subject: Apache CGI problem 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, Weird problem I'm having here. I can't execute any script in ScriptAlias directory. 500 Internal Server Error always came out. I'm pretty sure the scripts are all right. I ran them on shell, they executed well. Could it be that Apache lost the path? However, I did test-cgi with each script as its argument and the output showed empty answer ie: SERVER_SOFTWARE= SERVER_NAME= etc... for each run. Every arguments for test-cgi turned up blank in the script. I'm scratching my heads with these anomalies. ErrorLog shows "Premature script headers in "/var/www/cgi-bin/test.pl" and every single other scripts. ScriptLog shows nothing wrong with the scripts. I've checked and double-checked everything, the very setup worked well a week ago. ScriptAlias points to the correct cgi-bin path. mod_cgi.so is loaded so does mod_cgi.c. I only noticed this problem when my qmailadmin program couldn't execute. I thought maybe I screwed up with its setting but turned out the whole cgi-bin files couldn't be executed. Permission is all set right, I even went as far as doing 777 on all of them. I've posted this on Apache mailing-list and couldn't get any solution. Searching the archive uncovered one case similar of mine but he too couldn't get any solution. I hope there's plenty of good people over here that can help me. Just started with Apache a month ago and all seemed breezing smoothly up until now. So I guess, this is where the fun chapter begins. -- 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