Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 28635 invoked by uid 500); 17 Mar 2002 11:56:02 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 28624 invoked from network); 17 Mar 2002 11:56:00 -0000 Received: from unknown (HELO babbler.csp.org.by) (80.94.224.242) by daedalus.apache.org with SMTP; 17 Mar 2002 11:56:00 -0000 Received: from cyan ([192.168.1.150]) by babbler.csp.org.by (8.11.1/8.11.1) with ESMTP id g2HC0q321924 for ; Sun, 17 Mar 2002 14:00:52 +0200 Date: Sun, 17 Mar 2002 14:02:21 +0200 From: Artiom Morozov To: users@httpd.apache.org Subject: Re: Apache 2.0, CGI, and error 500 Message-ID: <20020317140221.G29353@cyan.csp.org.by> References: <20020317133117.E29353@cyan.csp.org.by> <20020317113110.50394.qmail@web14204.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit In-Reply-To: =?iso-8859-1?Q?=3C20020317113110=2E50394?= =?iso-8859-1?Q?=2Eqmail=40web14204=2Email=2Eyahoo=2Ecom=3E=3B_from_mjpvir?= =?iso-8859-1?B?dHVhbEB5YWhvby5jb20gb24g99PLLCDtwQ==?= =?iso-8859-1?Q?=D2?= 17, 2002 at 13:31:10 +0200 X-Mailer: Balsa 1.2.3 Lines: 75 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ok, then i'd advise you to use strace(1) to attach to server children and see what's going on. See man strace On 2002.03.17 13:31 Mike Price wrote: > LogLevel IS at debug and ScriptLog IS set. The > log file appears: > > %% [Sun Mar 17 03:19:06 2002] GET /cgi-bin/shscript > HTTP/1.0 > %% 500 /home/httpd/cgi-bin/shscript > %request > Referer: http://www.---.com/Home.html > Connection: Keep-Alive > User-Agent: Mozilla/4.79 [en] (WinNT; U) > Host: www.---.com > Accept: image/gif, image/x-xbitmap, image/jpeg, > image/pjpeg, image/png, */* > Accept-Encoding: gzip > Accept-Language: en > Accept-Charset: iso-8859-1,*,utf-8 > Extension: Security/Remote-Passphrase > %response > > Note that nothing follows the %response line - the > script appears not to produce any output. If I run > the script as the server user, it works fine. The > script file is NOT being accessed (as reported by ls > -lu). > > --- Artiom Morozov wrote: > > Ok, you're at the final stage - set LogLevel to > > debug and enable > > ScriptLog (beware of permissions for scriptlog! =). > > There then will > > your answer be (excuse my english ;-) > > > > On 2002.03.17 13:17 Mike Price wrote: > > > I checked httpd -l and it's using mod_cgi. > > > > > > --- Artiom Morozov wrote: > > > > probably you compiled mod_cgid instead of > > mod_cgi > > > > > > > > �� 2002.03.17 12:57 Mike Price �������: > > > > > I am unable to get CGI programs to work under > > > > > Apache 2.0.32. All of these programs work > > under > > > > > Apache 1.3.23. Under 2.0.32 they all produce > > error > > > > > "500 Premature end of script headers". The > > > > ScriptLog > > > > > output shows nothing following the %response > > line > > > > - > > > > > the scripts produce no output at all. An "ls > > -lu" > > > > > shows > > > > > that the script files are NOT being accessed. > > The > > > > > error log shows the correct file name for the > > > > script - > > > > > it's as though Apache cannot execute the file. > > > > > Permissions are 755 on the scripts and 711 on > > the > > > > > directory. User/group is consistent on both > > and > > > > > different from the server user/group. > > ScriptAlias > > > > > points to the directory. > > > > > > > --------------------------------------------------------------------- > > The official User-To-User support forum of the > > Apache HTTP Server Project. --------------------------------------------------------------------- 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 For additional commands, e-mail: users-help@httpd.apache.org