[mapserver-users] msLoadMap(): Unable to access file.
Jörg Thomsen
jt at mapmedia.de
Thu Nov 29 04:26:50 PST 2012
Hi,
mapserver tells you what's wrong:
> msLoadMap(): Unable to access file.
> (/home/sangitas/softwares/ex1/world_mapfile.map)
as your online-resource contains 'mapserv.exe' i think you are working
on windows. The path to your mapfile looks like unix-path. On windows it
should look like
c:\path to your mapfile\yourmapfile.map
regards, Jörg
> while opening the following link from the browser
>
> http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map
>
> where as http://10.210.43.209/cgi-bin/mapserv
> <http://10.210.43.209/cgi-bin/mapserv?map=/home/sangitas/softwares/ex1/world_mapfile.map> link
> works as expected.
>
> I made the changes in the map file as followes
>
> *'wms_onlineresource'
> 'http://localhost/cgi-bin/mapserv.exe?map=/home/sangitas/softwares/ex1/world_mapfile.map&'*
>
>
>
> LAYER
>
> NAME 'world_raster'
>
> TYPE RASTER
>
> *DATA '/home/sangitas/softwares/ex1/img/world_raster.tif'*
>
> **
>
> LAYER
>
> NAME 'world_adm0'
>
> TYPE POLYGON
>
> *DATA '/home/sangitas/softwares/ex1/data/world_adm0.shp'*
>
>
>
> Also added following in httpd.conf
>
> <Directory "/home/sangitas/softwares/ex1">
> Options Indexes MultiViews FollowSymLinks
> AllowOverride all
> Allow from all
> Order allow,deny
> </Directory>
> <Directory "/home/sangitas/softwares/ex1/img">
> AllowOverride all
> Allow from all
> </Directory>
> <Directory "/home/sangitas/softwares/ex1/data">
> AllowOverride all
> Allow from all
> </Directory>
>
> Request you to guide me to run this so that I can move further & try the
> same application with openlayers.
>
>
>
>
>
> *Thanks & Regards,*
>
> *Sangita *
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Information contained and transmitted by this e-mail is confidential and
> proprietary to iGATE and its affiliates and is intended for use only by
> the recipient. If you are not the intended recipient, you are hereby
> notified that any dissemination, distribution, copying or use of this
> e-mail is strictly prohibited and you are requested to delete this
> e-mail immediately and notify the originator or mailadmin at igate.com
> <mailto:mailadmin at igate.com>. iGATE does not enter into any agreement
> with any party by e-mail. Any views expressed by an individual do not
> necessarily reflect the view of iGATE. iGATE is not responsible for the
> consequences of any actions taken on the basis of information provided,
> through this email. The contents of an attachment to this e-mail may
> contain software viruses, which could damage your own computer system.
> While iGATE has taken every reasonable precaution to minimise this risk,
> we cannot accept liability for any damage which you sustain as a result
> of software viruses. You should carry out your own virus checks before
> opening an attachment. To know more about iGATE please visit
> www.igate.com <http://www.igate.com>.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list