[mapserver-users] malformed PNGs

Puneet Kishor pkishor at GeoAnalytics.com
Tue Aug 13 12:18:20 EDT 2002


well, I already had a line in my map file like so...

 	LOG "/var/www/html/bims/tmp/mapserver.log"

I added 

	$ENV{MS_ERRORFILE} = "/var/www/html/bims/tmp/mapserver.log"

to my perl script. I don't get any log files written out. Do I have to set
this ENV variable in the Apache conf file? or at the shell prompt using
setenv?

Tia,

pk/

> If you already have
> $ENV{MS_ERRORFILE} = "/var/log/mapserver.log"
> near the top of your perl script does the log show an error while
> rendering any of the layers?
> Lowell F.
> 
> On Mon, 12 Aug 2002, Puneet Kishor wrote:
> 
> > I am getting malformed PNGs... they are being made all 
> right, but they are
> > only about 3 to 4 k in length. The browser is unable to 
> show them, and of
> > course, opening them with an image application gives an 
> error... "Not a
> > valid PNG file".
> >
> > Any idea why?
> >
> > I am using ms3.5 with Perl/Mapscript.
> >
> > the machine I am developing on, a beatup box with RH 7.2, 
> works just fine
> > for a PHP Mapscript application.
> >
> > pk/
> >
> 



More information about the mapserver-users mailing list