Unable to access file???
Pericles S. Nacionales
pnaciona at gis.umn.edu
Mon Jun 5 10:01:16 PDT 2000
You need to use the DOS/Windows convention in specifying your map file. That
is, use the full drive letter and path to the map file (i.e.,
http://easyms/cgi-bin/mapserv.exe?map="c:\ms_demo\demo.map"). MapServer
doesn't know the virtual paths you provide to the web server (it is not the
web server). Also, mind the slashes. :) This is one of the differences
you'll run into in implementing MapServer on NT.
In fact, on your map file, you might have to change your SHAPEPATH to
something like:
SHAPEPATH "C:\MS_DEMO\DATA"
Hope that helps. (and don't forget to enclose your paths in quotes)
Perry Nacionales
pnaciona at gis.umn.edu
> -----Original Message-----
> From: owner-mapserver-users at lists [mailto:owner-mapserver-users at lists]On
> Behalf Of Zolla Michalak
> Sent: Monday, June 05, 2000 11:38 AM
> To: aborruso at spaziogis.it
> Cc: mapserver-users at lists
> Subject: Re: Unable to access file???
>
>
> I've also had some problems with accessing the map file. I have it working
> now with a complete path, rather than relative from the cgi-bin. Also,
> make sure your file permissions are set correctly.
>
> -zm
>
> On Mon, 5 Jun 2000 aborruso at spaziogis.it wrote:
>
> > Dear mapserver users,
> > I have begun to use mapserver few days ago. I have installed it
> on windows
> > Nt machine and It seems to work, but I'm not be able to view a
> very simple
> > map. I have begun to write a simple map file and then I have put this
> > string in my web browser (IE 5):
> http://easyms/cgi-bin/mapserv.exe?map=/ms_demo/prova.map&mode=map.
> > The result is: msLoadMap(): Unable to access file. (/prova.map)
> > I have used the Path, relative to the CGI directory,
> but I have no
> > result.
> > This is my map file:
> >
> > NAME EX1
> > EXTENT 74000 4775000 798000 5500000
> > SIZE 300 300
> > SHAPEPATH "/ms_demo/data"
> > LAYER
> > NAME "lakes"
> > DATA lakes
> > STATUS DEFAULT
> > TYPE POLYGON
> > CLASS
> > COLOR 250 175 25
> > END
> > END
> > END
> >
> > Please help me.
> > Thank you
>
More information about the MapServer-users
mailing list