[Mapserver-users] (no subject)
Lowell Filak
lfilak at medinaco.org
Fri Mar 28 08:15:56 PST 2003
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