Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 28934 invoked from network); 23 Aug 2007 17:50:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Aug 2007 17:50:05 -0000 Received: (qmail 32281 invoked by uid 500); 23 Aug 2007 17:49:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 32234 invoked by uid 500); 23 Aug 2007 17:49:51 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 32223 invoked by uid 99); 23 Aug 2007 17:49:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 10:49:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [12.18.177.40] (HELO foundry.frontierflying.com) (12.18.177.40) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 17:50:28 +0000 X-Warning: RFC compliance checks disabled due to whitelist X-Warning: Reverse-Path DNS check skipped due to whitelist X-Warning: Maximum message size check skipped due to whitelist X-Warning: Realtime Block Lists skipped due to whitelist X-Warning: System filters skipped due to whitelist X-Warning: Domain filters skipped due to whitelist X-Warning: User filters skipped due to whitelist X-Warning: Anti-Spam check skipped due to whitelist X-Whitelist: 2147483645 X-Envelope-From: israel@frontierflying.com X-Envelope-To: users@httpd.apache.org Received: From approach.frontierflying.com (12.18.177.49) by foundry.frontierflying.com (MAILFOUNDRY) id MG2r1lGhEdyFhwAw for users@httpd.apache.org; Thu, 23 Aug 2007 17:49:25 -0000 (GMT) Received: from [10.9.1.59] (israel.frontierflying.com [10.9.1.59]) by approach.frontierflying.com (8.13.8/8.13.1) with ESMTP id l7NHnPZ2032322 for ; Thu, 23 Aug 2007 09:49:25 -0800 Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: <6C05B9E7-C8CB-4706-82C5-79ADF69FB429@frontierflying.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: users@httpd.apache.org From: Israel Brewster Date: Thu, 23 Aug 2007 09:48:45 -0800 X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] OpenBSD 4.1 CGI issues First off, I apologize for asking a question that I know you get a lot, but I have just spent the last hour and a half beating my head against the wall and searching the internet trying to find a solution with no luck. Short version: I have an existing OpenBSD 4.0 box on which Apache (version 1.3.29) is working properly, including execution of CGI scripts. I am trying to move to a new machine with OpenBSD 4.1, so I started with a fresh OpenBSD 4.1 install, which comes with the same version of Apache as 4.0, and copied the httpd.conf file over from my old machine. After starting the web server, however, I found that it could not run any CGI scripts- always just giving me the following error: [Thu Aug 23 08:45:40 2007] [error] [client 127.0.0.1] Premature end of script headers: /cgi-bin/test-cgi The details: Aside from being OpenBSD 4.1, the new box is set up the same as the old one. I have checked and double checked the permissions on both the cgi files, including the test cgi included with the install, as well as the CGI folder. The test-cgi, as well as the printenv both run fine from a terminal window. I tried reverting to the factory default httpd.conf, with no luck. The permissions on the contents of the cgi-bin folder are as follows: ls -l /var/www/cgi-bin/ total 212 ---------- 1 root bin 99072 Mar 10 16:41 bgplg drwxr-xr-x 2 root daemon 512 Aug 23 07:59 nagios -rwxrwxrwx 1 root bin 268 Mar 10 16:32 printenv -rwxrwxrwx 1 root bin 757 Mar 10 16:32 test-cgi the cgi-bin folder itself has 755 permissions. The relevant section from the httpd.conf file is as follows: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" # # "@@ServerRoot@@/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # AllowOverride None Options none Order allow,deny Allow from all I have tried adding an "AddHandler cgi-script .cgi" directive to that block, as one webpage I found suggested, as well as changing the "Option none" to "Options ExecCGI". I did, of course, restart the server between each configuration change. I have also tried with various different CGI scripts, most of which come from a fresh install. Nothing seems to make any difference- I still get the "premature end of script headers" error. If this was linux, i'd say check the SELinux settings, but it isn't. What am I missing here? ----------------------------------------------- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 ----------------------------------------------- --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org