[mapserver-users] CGI problem

Siki Zoltan siki at agt.bme.hu
Tue Feb 3 06:00:44 EST 2009


Dear Balázs,

Probably you have an error in your map file, an END may be missing or a
quote ("). Test your map file with shp2img e.g.
shp2img -m your_map_file -o output_image

An other note, do not use your unix box as root if it is not neccessary.

Best regards,
Zoltán

On Mon, 2 Feb 2009, Balázs Bámer wrote:

> Hi All,
>
> I've compiled and installed Mapserver for CGI use. If I try it from browser like
> http://web.address.hu/cgi-bin/proba?map=/var/www/proba/data/proba.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
> it gives
> Internal Server Error
> with
> Premature end of script headers
> in Apache error log. It definitely finds the mapfile.
>
> After some list archive investigations, I tried the command-line
> method for inspecting output to see behind internal server errors:
> root at Black:/var/log/mapserver# REQUEST_METHOD=GET
> root at Black:/var/log/mapserver#
> QUERY_STRING="map=/ext/home/rich/wrk/mapserver/freenavi/zoom0-5.rich.map&mode=map"
> root at Black:/var/log/mapserver# /usr/lib/cgi-bin/mapserv
> This script can only be used to decode form results and
> should be initiated as a CGI process via a httpd server.
>
> so it seems the mapserv called from command line didn't see the "query".
>
> How could I debug it?
>
> Thank you in advance.
> Best regards: Balázs Bámer
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>


More information about the mapserver-users mailing list