[mapserver-users] malformed PNGs

Lowell.Filak lfilak at medinaco.org
Tue Aug 13 12:58:34 EDT 2002


The LOG is for logging requests whereas the ERRORFILE is for logging
errors. Does the user that the webserver is running as have permission to
write to /var/www/html/bims/tmp/mapserver.log or alternately
/var/www/html/bims/tmp/error.log? There should at least be a log file with
a record of the request.
Lowell

On Tue, 13 Aug 2002, Puneet Kishor wrote:

> 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