Hi Alberto, 

I can get the capabilities document, & a list of available layers, using the 
WMS facility in Quantum GIS, but when I try to access/load the layers as a map 
the request fails:

"Response: <HTML>
<HEAD><TITLE>MapServer Message</TITLE></HEAD>
<!-- MapServer version 6.0.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=GEOS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE -->
<BODY BGCOLOR="#FFFFFF">
msLoadMap(): Unable to access file. 
(http://173.236.45.118/home/bicimapas/mapdata/BiciMapasMS.map)
</BODY></HTML>"
I suggest that having your mapfile in your home directory tree rather than your 
webserver's directory tree might be the problem.
You might also try tools like uDIG or QGIS to access the WMS service & debug it 
before you try to get it working with OpenLayers.
Cheers,
   Brent Wood


--- On Sat, 4/28/12, Alberto Najera <[email protected]> wrote:

From: Alberto Najera <[email protected]>
Subject: RE: [mapserver-users] Open Layers Problem
To: [email protected]
Date: Saturday, April 28, 2012, 11:25 AM

Thanks,

I used this

http://173.236.45.118/cgi-bin/mapserv?map=BiciMapasMS.map&SERVICE=WMS&;
> VERSIO
> N=1.1.1&REQUEST=GetCapabilities
>
> and get this message
>
> msLoadMap(): Unable to access file. (BiciMapasMS.map)
>
> Why would the map file not be accessible to openlayers while Mapserver 
> can access it?  Is it a permissions or a path definition problem?
>
> Any hel os appreciated. Thanks
>
>
> Alberto Najera
>
>
> -----Mensaje original-----
> De: [email protected]
> [mailto:[email protected]] En nombre de Alberto 
> Najera Enviado el: viernes, 27 de abril de 2012 01:19 p.m.
> Para: [email protected]
> Asunto: [mapserver-users] Open Layers Problem
>
> Hello
>
> We have a map that is rendered well using the Mapserver template and 
> are trying to use it with OpenLayers but are experiencing some 
> problems as the map does not show and I cannot find why.
>
> We are using a Linux Centos 5 remote server and the map file is 
> located in home/bicimapas/mapdata/BiciMapasMS.map and the Mapserver 
> CGI  is located in /home/bicimapas/cgi-bin/mapserv. The IP address is  
> 173.236.45.118
>
> On the map file we added this Metadata lines under the WEB section
>
> METADATA
>      "wms_title" "BiciMapasMS"
>      "wms_onlineresource"
> "
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to