I'm using MapCache with MapServer. When I use the link to MapCache the map is served but I look in the /tmp/mapcache directory and no files are list. I've made the /tmp/mapcache directory world writable and still no luck.

Here is my mapcache.xml

<mapcache mode="combined_mirror">
   <cache name="disk" type="disk">

   <source name="vmap0" type="wms">


   <tileset name="mirror">
      <metatile>5 5</metatile>


   <service type="wms" enabled="true">
      <forwarding_rule name="catch all">
   <service type="wmts" enabled="true"/>
   <service type="tms" enabled="true"/>
   <service type="kml" enabled="true"/>
   <service type="gmaps" enabled="true"/>
   <service type="ve" enabled="true"/>
   <service type="demo" enabled="true"/>



The Apache mapcache.conf

<IfModule mapcache_module>
   Header add Access-Control-Allow-Origin "*"
   <Directory /mapcache>
      Order Allow,Deny
      Allow from all
   MapCacheAlias /mapcache "/etc/apache2/mods-enabled/mapcache.xml"

If I run mapcache_seed with this xml file it seems to generate the cache files properly

  • 1
    Did you chown ww-data:www-data /etc/apache2/mods-enabled/mapcache.xml?
    – ThomasG77
    Commented Oct 16, 2021 at 22:57
  • No I did not but I did just now. It didnt make a difference. However the file is world readable and mapcache is returning an image. Its just not writing the image to disk. Commented Oct 18, 2021 at 17:30


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.