[Mapserver-users] (no subject)

mapserv at dinequest.us mapserv at dinequest.us
Fri Mar 28 14:09:08 EST 2003


no images.. It shouldn't make any though, right? I thought it just sent them 
directly to the client cpu? Mapserv doesn't produce any temp images when i use 
my localhost box (which works), it just pops up in the browser window.

Thanks for the debugging info. I was searching for something like this! -bp 


Quoting Lowell Filak <lfilak at medinaco.org>:

> If you ftp into the isp and navigate to the httpdocs/data directory do you
> see any newly created image files?
> Also take a look at:
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver for
> information on how to turn on debugging in your version to try and pinpoint a
> cause.
> HTH
> Lowell F.
> 
> The following message was sent by mapserv at dinequest.us on Fri, 28 Mar 2003
> 13:39:33 -0500.
> 
> > still no luck with the "../httpdocs/data/".
> > 
> > perhaps my ISP may have a strange permission setting in apache or some
> other 
> > apache CGI issue that i'm unaware of because it works on my box i have set
> up 
> > with the same mapserv static binary, using the same mapfile (different dirs
> of 
> > course), under the same version of apache (1.3.27).
> > 
> > or it might be to do with the url string? Does mapserver know to send the
> image 
> > back to the url source? That seems like a big "Duh", but there is obviously
> 
> > something i'm missing that's causing the "premature end of script headers"
> 
> > error, and i'm pretty sure it doesn't have to do with the map file... 
> > 
> > Quoting Lowell Filak <lfilak at medinaco.org>:
> > 
> > > If you change IMAGEPATH to "../httpdocs/data/" does it help?
> > > Lowell F.
> > > 
> > > The following message was sent by mapserv at dinequest.us on Fri, 28 Mar
> 2003
> > > 11:04:07 -0500.
> > > 
> > > > Quoting Lowell Filak <lfilak at medinaco.org>:
> > > > 
> > > > > I think the original suggestion was to make sure the IMAGEPATH (which
> is
> > > > > where the temporary image files, ie. maps, are created) points to
> > > somewhere
> > > > > in httpdocs instead of cgi-bin and then make sure the permissions on
> the
> > > temp
> > > > > directory are 777.
> > > > > The data directory can stay in cgi-bin so your data is not directly
> > > > > downloadable.
> > > > > Lowell F.
> > > > 
> > > > 
> > > >  I have it set up in this manner:
> > > > 
> > > > -my demo.map file is in the cgi-bin
> > > > -my data directory in in httpdocs (but i will change it to
> /cgi-bin/data,
> > > as 
> > > > you've suggested, once i get the mapserver working).
> > > > -my IMAGEPATH to my data directory
> > > > 
> > > > here is my url i put into the browser to test it:
> > > > 
> > > > http://www.dinequest.us/cgi-bin/mapserv?map=/cgi-
> > > >
> bin/demo.map&VERSION=1.1.0&REQUEST=GetMap&BBOX=-83.81,41.25,-81.80,42.79
> > > > 
> > > > also have tried:
> > > > 
> > > > http://www.dinequest.us/cgi-bin/mapserv?
> > > >
> map=demo.map&VERSION=1.1.0&REQUEST=GetMap&BBOX=-83.81,41.25,-81.80,42.79
> > > > 
> > > > 
> > > > here is my updated map file:
> > > > 
> > > > NAME DEMO
> > > > WEB
> > > > 
> > > > IMAGEPATH "/usr/local/psa/home/vhosts/dinequest.us/httpdocs/data/"
> > > > IMAGEURL "http://localhost/data/"
> > > > END
> > > > 
> > > > UNITS DD
> > > > EXTENT -178 16 -66 74
> > > > SIZE 324 210
> > > > SHAPEPATH "/usr/local/psa/home/vhosts/dinequest.us/httpdocs/data/"
> > > > 
> > > > LAYER 
> > > >   NAME "states" 
> > > >   DATA dtl_st.shp
> > > >   STATUS DEFAULT
> > > >   TYPE POLYGON 
> > > >   CLASS 
> > > >     COLOR 250 247 222 
> > > >   END # end of class object
> > > > END # end of layer object
> > > > 
> > > > IMAGETYPE JPEG
> > > > IMAGEQUALITY 90
> > > > INTERLACE OFF
> > > > END # end of map file
> > > > 
> > > > 
> > > > > 
> > > > > The following message was sent by mapserv at dinequest.us on Fri, 28
> Mar
> > > 2003
> > > > > 00:05:57 -0500.
> > > > > 
> > > > > > 
> > > > > > 
> > > > > > thanks for responding, Steve,
> > > > > > 
> > > > > > - I've tried what you've said with the trailing slash (in the
> mapfile)-
> > > i
> > > > > still
> > > > > > recieved a "premature end of script headers" error. 
> > > > > > 
> > > > > > - I've moved the data folder into my httpdocs folder and adjusted
> my
> > > map
> > > > > file to
> > > > > > point there instead- same result.
> > > > > > 
> > > > > > - reset permissions on my cgi-bin, shp files, map file and shp
> file
> > > "data"
> > > > > dir
> > > > > > to chmod 7777- same result.
> > > > > > 
> > > > > > - I re-uploaded mapserv (static library file 2.5 megs) in ASCII
> mode,
> > > just
> > > > > to
> > > > > > make sure i actually did send it ascii and not binary- same
> result.
> > > > > > 
> > > > > > - I installed apache on my redhat 2.4.18-3 box and set up the same
> > > mapserv
> > > > > file
> > > > > > on the localhost- works fine.
> > > > > > 
> > > > > > I'm stumped... I'm begining to think that i have to start editing
> the
> > > code
> > > > > to
> > > > > > produce a proper header?
> > > > > > 
> > > > > > 
> > > > > > Quoting Steve Lime <steve.lime at dnr.state.mn.us>:
> > > > > > > The setting for IMAGEPATH looks suspect. The way it's set
> mapserv
> > > will
> > > > > > > be looking for a writable
> > > > > > > directory in your cgi-bin directory. That's probably not what
> you
> > > want.
> > > > > > > That parameter should
> > > > > > > be full path and should have a trailing slash.
> > > > > > > 
> > > > > > > Steve
> > > > > > > 
> > > > > > > >>> <mapserv at dinequest.us> 03/27/03 12:34PM >>>
> > > > > > > 
> > > > > > > 
> > > > > > > hello everyone,
> > > > > > > 
> > > > > > > I'm hoping someone can help me by suggesting some options in
> hopes
> > > that
> > > > > > > i can 
> > > > > > > get mapserv working on my server. I layed out my steps so that
> it
> > > can
> > > > > > > be easier 
> > > > > > > to follow:
> > > > > > > 
> > > > > > > - I have a redhat linux box (2.4.18-3 i386) which i've built a
> > > static
> > > > > > > library 
> > > > > > > mapserv on. (ran mapserv -v and it listed correct supports)
> > > > > > > - I uploaded it to my server's cgi-bin (which is a redhat 2.4.19
> > > i386)
> > > > > > > - set chmod 755 on mapserv
> > > > > > > - set up demo.map mapfile correctly in the cgi-bin
> > > > > > > - uploaded proper data in cgi-bin under the "data" directory
> > > > > > > - ran from browser: http://<my location>/cgi-bin/mapserv?
> > > > > > >
> > > map=demo.map&VERSION=1.1.0&REQUEST=GetMap&BBOX=-83.81,41.25,-81.80,42.79
> > > > > > > 
> > > > > > > *recieved internal error ("premature end of script headers" in
> log)
> > > > > > > - renamed mapserv to mapserv.cgi
> > > > > > > 
> > > > > > > *recieved internal error ("premature end of script headers" in
> log)
> > > > > > > 
> > > > > > > i assume that this is not a mapfile issue, but here is my
> mapfile
> > > > > > > anyway:
> > > > > > > 
> > > > > > > NAME DEMO
> > > > > > > WEB
> > > > > > > 
> > > > > > > IMAGEPATH "data"
> > > > > > > IMAGEURL "http://www.dinequest.us/data"
> > > > > > >    END
> > > > > > > END
> > > > > > > 
> > > > > > > UNITS DD
> > > > > > > EXTENT -178 16 -66 74 
> > > > > > > SIZE 324 210 
> > > > > > > SHAPEPATH "data" 
> > > > > > > 
> > > > > > > LAYER 
> > > > > > >   NAME "states" 
> > > > > > >   DATA dtl_st
> > > > > > >   STATUS DEFAULT
> > > > > > >   TYPE POLYGON 
> > > > > > >   CLASS 
> > > > > > >     COLOR 250 247 222 
> > > > > > >   END # end of class object
> > > > > > > END # end of layer object
> > > > > > > 
> > > > > > > IMAGETYPE JPEG
> > > > > > > IMAGEQUALITY 90
> > > > > > > INTERLACE OFF
> > > > > > > END # end of map file
> > > > > > > 
> > > > > > > I appreciate any other suggestions. You guys are the gurus and i
> > > would
> > > > > > > be alot 
> > > > > > > farther behind if it weren't for you all. Thanks in advance -bp 
> > > > > > > 
> > > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------------
> > > > > > > _______________________________________________
> > > > > > > Mapserver-users mailing list
> > > > > > > Mapserver-users at lists.gis.umn.edu 
> > > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > > > _______________________________________________
> > > > > > > Mapserver-users mailing list
> > > > > > > Mapserver-users at lists.gis.umn.edu
> > > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > >
> > >
> ------------------------------------------------------------------------------
> > > > > > _______________________________________________
> > > > > > Mapserver-users mailing list
> > > > > > Mapserver-users at lists.gis.umn.edu
> > > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > 
> > > > > _______________________________________________
> > > > > Mapserver-users mailing list
> > > > > Mapserver-users at lists.gis.umn.edu
> > > > > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> > > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > >
> ------------------------------------------------------------------------------
> > > 
> > > 
> > 
> > 
> > 
> > 
> >
> ------------------------------------------------------------------------------
> 
> 




------------------------------------------------------------------------------



More information about the mapserver-users mailing list