[Mapserver-users] mapscript/CGI by example

Daniel Morissette morissette at dmsolutions.ca
Fri Mar 14 08:24:22 PST 2003


Matt Doggett wrote:
> 
> Warning: MapServer Error in msLoadMap():
> (/usr/local/apache2/htdocs/mdoggett/mapscript/europe.map) in
> /usr/local/apache2/htdocs/mapscript/example1.phtml on line 6
> 
> Fatal error: Failed to open map file
> /usr/local/apache2/htdocs/mdoggett/mapscript/europe.map in
> /usr/local/apache2/htdocs/mapscript/example1.phtml on line 6
> 
> I've checked all permissions, paths, files, etc and they are
> correct...what gives?
> The absolute path reference to europe.map is correct.  When I remove the
> absolute path reference and change it to relative (./europe.map) it
> works again!  So, why doesn't the absolute path work?  For a brief
> moment it did...then something changed.  Apache config?
> 

If you can open the mapfile using "./europe.map", then I assume the
mapfile lives in the same directory as example1.phtml, correct?  
If that's the case then absolute path should probably be
/usr/local/apache2/htdocs/mapscript/europe.map 

Daniel
-- 
------------------------------------------------------------
 Daniel Morissette               morissette at dmsolutions.ca
 DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------



More information about the MapServer-users mailing list