[Mapserver-users] 500 Server Error - Log: Premature end of script headers

Oliver Wesp wesp at gdv.com
Wed Jan 7 08:13:40 EST 2004


Eric,

most likely there is no LD_LIBRARY_PATH set within your apache 
environment and therefore mapserv doesnt't find the necessary libs when 
invoked via cgi.

Try adding something like

setenv LD_LIBRARY_PATH /usr/local/lib

to your httpd.conf and restart apache.

best regards
Oliver

Try something

Eric Pocher wrote:

> Hi All,
> 
>  i complied the mapserver successfully. if I execute the file in the shell I
> get the message:
> "This script can only be used to decode from results and should be initiated
> as a CGI process via a httpd server."
> 
> So I think the mapserv-file is allright. but if I open the file from a
> browser directly without any parameters, I should get the message "No query
> information to decode. QUERY_STRING not set.", but the 500 INERNAL SERVER
> ERROR returned.
> The logfile says:
> "Premature end of script headers."
> 
> Is there any error in the mapserv-file or in the conig of the webserver.
> 
> Server OS: Suse Linux 8
> Webserver: Apache 1.3
> 
> Eric
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 
> 
> 


-- 
Dipl.-Geogr. Oliver Wesp
Gesellschaft fuer geografische Datenverarbeitung
Binger Strasse 49-51
D-55218 Ingelheim
fon: +49 6132 714818
fax: +49 6132 714828
http: www.gdv.com



More information about the mapserver-users mailing list