Premature end of script headers: mapserv

Bart van den Eijnden (OSGIS) bartvde at XS4ALL.NL
Wed May 10 05:39:08 EDT 2006


What happens if you use PassEnv in the Apache httpd.conf to pass on the
LD_LIBRARY_PATH to the CGI? After that restart Apache ofcourse.

PassEnv LD_LIBRARY_PATH

Best regards,
Bart

> Hi Grabiel:
>
> I don't think that is a file permission issue. All the permissions are
> ok. The problem is that I cannot execute cgi-bin scripts from the
> browser. Indeed, I have a 'test-cgi' script that shows the same error.
> Moreover I have written a very simple cgi-bin test script and got the
> same error. This scripts is simply:
>
> #!/bin/sh
>
> echo
> echo "test"
>
> Now I am checking the apache httpd.conf file for permissions to execute
> cgi-bin scripts.
>
> Thanks anyway, and tell me please if you have any other suggestion.
>
> Regards,
>
> Juan.
>
> grabiel escribió:
>>
>> Hi
>>    Juan
>>      Check the file permission for mapserv and the path that preceeds
>> it. If your mapserv is in /usr/local/apache/cgibin then
>> set the file permission(write) for others etc. using chmod comand.
>> If ur file permission is not set to write for each directory or mapserv
>> then you may get the error that u have mentioned.
>> Best of luck
>> Grabiel
>> *************************************************************
>>
>>
>> Hi all,
>>
>> I have compiled successfully mapserver 4.8.3 under Solaris 8:
>>
>> $ ./mapserv -v
>> MapServer version 4.8.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
>> OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE
>> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER INPUT=TIFF
>> INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
>>
>> However, when I put the mapserv file into the cgi-bin apache directory
>> and try to open the file directly without any parameters from my
>> browser, instead of the message expected ('No query information to
>> decode. QUERY_STRING is set, but empty.'), I get an 'Internal Server
>> Error' message. If I look the apache logfile I get this: 'Premature end
>> of script headers: mapserv'.
>>
>> The LD_LIBRARY_PATH in the apache environment is:
>>
>> LD_LIBRARY_PATH=/usr/local/lib:/usr/local/ssl/lib
>> export LD_LIBRARY_PATH
>>
>>
>> Could anyone help me?
>>
>> Regards,
>>
>> Juan.
>>
>>
>>
>> _______________________________________________
>> No banners. No pop-ups. No kidding.
>> Make My Way  your home on the Web - http://www.myway.com
>>
>>
>>
>>
>



More information about the mapserver-users mailing list