httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanchez, Francisco" <francisco.sanc...@infopeople.de>
Subject WG: Install "zap" as CGI, I get always "Premature end of script h eaders"
Date Thu, 13 Dec 2001 17:03:22 GMT
>   
> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message