Hi Graham, The map parameter is always an absolute path to the mapfile. Not a relative or a web path (alias) neither. Currently, you are using a Unix system path. You should use the proper Windows path in the URL:
http://...?map=C:\ms4w\apps\tutorial\mapfiles\a_mapfile.map&otherOption=... Alan On November 3, 2009 06:47:54 am graham_allan wrote: > Dear all, > > > > I'm currently trying to follow the MapServer tutorials > <http://mapserver.org/tutorial/example1-1.html#example1-1> by Pericles S. > Nacionales, I have successful downloaded and installed both the tutorial > data and MS4W <http://maptools.org/ms4w/> distribution but when I try the > URL in the first example > <http://mapserver.org/tutorial/example1-1.html#example1-1> I get the > following error: > > > > msLoadMap(): Unable to access file. > (/ms4w/apps/tutorial/htdocs/example1-1.map) > > > > I'm running Windows Vista and have amended the example1-1.map file in > C:\ms4w\apps\tutorial\mapfiles as required. > > > > If I amend the URL to: > > > > http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/examp > l e1-1.map > <http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/mapfiles/exam > p le1-1.map&layer=states&mode=map> &layer=states&mode=map > > > > The map is displayed as shown in the tutorial, however, I'm not sure if the > problem is due to a configuration error on may part or whether the URL in > the tutorial is wrong (this seems unlikely). > > > > Does anybody know which configuration files/options I need to amend? > > > > > > > > > > Thanks > > > > > > Graham > > > > > > Crowder & Co Ltd, Registered Office: Post Office House, 99-105 Argyle > Street, Birkenhead, Merseyside, CH41 6AD. Telephone: 0151 647 7772 > Registered in England and Wales, No. 3003604. VAT No. GB618952020 > This e-mail is confidential and intended solely for the use of the > individual to whom it is addressed. Any views or opinions presented are > solely those of the author and do not necessarily represent those of > Crowder & Co Ltd. If you are not the intended recipient of this e-mail you > may not copy, use, forward or disclose its contents to any other person ; > please delete the message and attachments from your system. > > For more information visit our web site at http://www.crowderconsult.co.uk > -- Alan Boudreault Mapgears http://www.mapgears.com _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users