Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 11530 invoked by uid 500); 13 Dec 2001 17:00:28 -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 11519 invoked from network); 13 Dec 2001 17:00:27 -0000 Received: from paperboy.noris.net (HELO mail2.noris.net) (62.128.1.27) by daedalus.apache.org with SMTP; 13 Dec 2001 17:00:27 -0000 Received: from virus2.noris.net ([62.128.1.83]:2963 "EHLO mail3.backup.noris.net") by mail.noris.net with ESMTP id ; Thu, 13 Dec 2001 18:00:28 +0100 Received: from [213.95.4.122] ([213.95.4.122]:4338 "EHLO wendoline.infopeople") by mail.noris.net with ESMTP id convert rfc822-to-8bit; Thu, 13 Dec 2001 18:00:22 +0100 Received: by WENDOLINE with Internet Mail Service (5.5.2653.19) id ; Thu, 13 Dec 2001 18:03:23 +0100 Message-ID: From: "Sanchez, Francisco" To: "'users@httpd.apache.org'" Subject: WG: Install "zap" as CGI, I get always "Premature end of script h eaders" Date: Thu, 13 Dec 2001 18:03:22 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > > Hello and thanks in advance!! > > At first, I am working under W2000, I have donwloaded YAZ and ZAP and with > the instructions and help from Indexdata, now I have "ZAP.EXE". Now I must > only to put ZAP.EXE under my web server and allow CGI execution. > > I load the cgi.html in the web browser (IE 5.5) and I have the web page, I > select the DB from indexdata "bagel.indexdata.dk:210/gils" in the box > titled Your server, and click for search!! > > The configuration I have is: > I have ZAP.EXE under ...../cgi-bin/ > and the code file under ......./httdocs/zap/ > > In Apache httpd.conf I have: > I have set in apache the logleve to "debug". > Set the option ExecCGI for ...../cgi-bin/ > AddHandler cgi-script .cgi .zap > > > I try with the cgi.html file in the web server but always I get the > "Premature end of script headers". I have read the complete ZapList and > YazList looking for the solution, I didn�t find it, so I read the Apache > documentation searching that. > > I found a chapter for "Internal server error -> premature end of script > header" > And say for this problem there are four reasons > > 1.- FILE PERMISION: > I am under W2000 and all files are executable for everybody. > > 2.- PATH INFORMATION: > I have ZAP.EXE in ..../cgi-bin/ the scripts folder!!. > In script.log I have the line "%% 500 c:/programme/apache > group/apache/cgi-bin/zap.EXE" this is the path!! > I have tried too with the line in httpd.conf > "#!c:/programme/apache group/apache/cgi-bin/zap", but it�s the same. > > 3.- SYNTAX ERROR: > I have downloaded all zap files from indexdata, so I suppouse they > all are correct. > > 4.- ERROR LOGS: > See what happend in the log files. > > Well here I will append the different log files: > > ACCESS.LOG > 127.0.0.1 - - [10/Dec/2001:10:35:00 +0100] "GET //zap/cgi.html HTTP/1.1" > 304 - > 127.0.0.1 - - [10/Dec/2001:10:35:43 +0100] "GET > /cgi-bin/zap/zap/default.zap?field1=@attr+1%3D4&term1=utah&action=search&s > yntax=html&element=B&number=10&target=bagel.indexdata.dk%3A210%2Fgils > HTTP/1.1" 500 602 > > -------------------------------------------------------------------- > ERROR.LOG > [Mon Dec 10 10:33:27 2001] [alert] Apache.exe: Could not determine the > server's fully qualified domain name, using 127.0.0.1 for ServerName > [Mon Dec 10 10:33:27 2001] [info] Parent: Created child process 2040 > [Mon Dec 10 10:33:27 2001] [info] Parent: Duplicating socket 440 and > sending it to child process 2040 > [Mon Dec 10 10:33:27 2001] [info] BytesRead = 372 WSAProtocolInfo = > 2006620 > [Mon Dec 10 10:35:43 2001] [error] [client 127.0.0.1] Premature end of > script headers: c:/programme/apache group/apache/cgi-bin/zap.EXE > > > -------------------------------------------------------------------- > SCRIPT.LOG > %% [Mon Dec 10 10:35:43 2001] GET > /cgi-bin/zap/zap/default.zap?field1=@attr+1%3D4&term1=utah&action=search&s > yntax=html&element=B&number=10&target=bagel.indexdata.dk%3A210%2Fgils > HTTP/1.1 > %% 500 c:/programme/apache group/apache/cgi-bin/zap.EXE > %request > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, > application/vnd.ms-excel, application/msword, > application/vnd.ms-powerpoint, application/pdf, */* > Accept-Encoding: gzip, deflate > Accept-Language: de > Connection: Keep-Alive > Host: 127.0.0.1 > Referer: http://127.0.0.1//zap/cgi.html > User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0) > %response > -------------------------------------------------------------------- > > Thanks for your attention!! > > > Regards. > > Francisco S�nchez Valdivia > - Software Entwicklung - > > Infopeople AG, Am Weichselgarten 7, 91058 Erlangen-Tennenlohe. > fon: +49-(0)9131-691-586 fax: +49-(0)9131-691-571 > mail: francisco.sanchez@infopeople.de > > > visit us @ www.infopeople.de > > > --------------------------------------------------------------------- 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