lundi 1 décembre 2014

How to install MapServer and MapCache on Ubuntu 14.04?


I want to install MapServer and MapCache on Ubuntu 14.04. The MapServer installation succeeded but now I'm stuck with the installation of MapCache. This is what I did so far:


Install MapServer and MapCache:



sudo apt-get install cgi-mapserver mapcache-cgi libapache2-mod-mapcache


Store my raster images in /mapserver/data/tamale_2014ds.tif and tamale_2014ws.tif and create a map file in /mapserver/tamale.map:



MAP
PROJECTION
"init=epsg:3857"
END
IMAGETYPE JPEG
EXTENT -94018 1048833 -92362 1049470
SIZE 1000 400
WEB
METADATA
"wms_title" "tamale"
"wms_srs" "epsg:3857"
END
END
LAYER
METADATA
"wms_title" "dry_season_2014"
"wms_srs" "epsg:3857"
"wms_enable_request" "*"
END
NAME dry_season_2014
DATA /mapserver/data/tamale_2014ds.tif
STATUS OFF
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 0 0 0
END
LAYER
METADATA
"wms_title" "wet_season_2014"
"wms_srs" "epsg:3857"
"wms_enable_request" "*"
END
NAME wet_season_2014
DATA /mapserver/data/tamale_2014ws.tif
STATUS OFF
TYPE RASTER
PROCESSING "BANDS=1,2,3"
OFFSITE 0 0 0
END
END


So far, everything is fine, see OpenLayers demo: http://ift.tt/1GorEMm


For MapCache I edited my apache configuration file /etc/apache2/sites-available:



<IfModule mapcache_module>
<Directory /mapcache>
Order Allow,Deny
Allow from all
</Directory>
MapCacheAlias /mapcache "/mapcache/mapcache.xml"
</IfModule>


However, I cannot access MapCache. All I get is a status 403 Forbidden: http://ift.tt/1wac1Fr


I already tried several owners and permissions for the directory /mapcache (even CHMOD 777). Any ideas on that?





Aucun commentaire:

Enregistrer un commentaire