[mapserver-users] Perl Mapscript issue (was: Tried to send message to thelist..)
Lowell Filak
lfilak at medinaco.org
Tue Sep 10 14:12:20 PDT 2002
Do you have RASTER layers in your mapfile? If you comment that layer(s) out does the cgi work?
Lowell F.
> I tried to send a message to the MS list, but it didn't seem to go through..
> However, nothing was sent back to me (wrong email).
>
> Here is my message:
>
> *********************************************************************
>
> Hi List
>
> I am trying to run a very basic mapscript cgi. Here is the code:
>
> #!/usr/local/bin/perl
>
> use mapscript;
>
> my $map = new mapObj('/usr/local/apache/htdocs/liv_ms/liv.map') or
> die('Unable to open mapfile');
> my $image = $map->draw() or die('Unable to draw map');
>
>
> When I try to run, I get a 500 Internal server error in my browser and the
> following is in the apache error log:
>
> [Mon Sep 9 21:25:25 2002] [error] [client 192.168.1.1] Premature end of
> script headers: /usr/local/apache/cgi-bin/ms.cgi
> libpng warning: Incomplete compressed datastream in iCCP chunk
>
> I have already checked:
>
> -perl is in /usr/local/bin/
> -there is a map file at the location
>
> Any help or ideas would be appreciated
>
> Thank you in advance
>
> Brian Tomaszewski
More information about the MapServer-users
mailing list