[mapserver-users] mapcache - problems on install

thomas bonfort thomas.bonfort at gmail.com
Thu May 10 09:38:52 EDT 2012


given your configuration file, you have not disabled it. what url are
you trying to access the demo on ?

On Thu, May 10, 2012 at 3:16 PM, Helen San Segundo Navazo
<hsansegundo at meteo.cat> wrote:
> hi,
> deliberately I have not disabled the demo service, maybe in the installation
> I had to put any "--with" to enable it? is there any way to activate it?
> thanks
>
> El 10/05/12 14:14, thomas bonfort escribió:
>
>> please keep replies on the mailing list.
>>
>> On Thu, May 10, 2012 at 2:07 PM, Helen San Segundo Navazo
>> <hsansegundo at meteo.cat>  wrote:
>>>
>>> ok thanks, now seems that is really loaded the module. ([Thu May 10
>>> 13:21:24
>>> 2012] [notice] Apache/2.2.14 (Ubuntu) mod_fcgid/2.3.4
>>> mod-mapcache/0.5-dev
>>> configured -- resuming normal operations)
>>>
>>> The documentation talks about a demo, I can't find it. I have the
>>> mapcache.xml file with a sample with a basic layer. Could you tell me how
>>> test it, the url call?
>>
>> from the fine manual:
>> "
>> If you have not disabled the demo service, you should now have access
>> to it on http://myserver/mapcache/demo
>> "
>>
>> replace /mapcache/ with what you've set in MapCacheAlias
>>
>> --
>> thomas
>>
>>> thanks again,
>>> Helen
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <!-- see the accompanying mapcache.xml.sample for a fully commented
>>> configuration file -->
>>>
>>> <mapcache>
>>> <cache name="disk" type="disk">
>>> <base>/tmp</base>
>>> <symlink_blank/>
>>> </cache>
>>>
>>> <source name="vmap0" type="wms">
>>> <getmap>
>>> <params>
>>> <FORMAT>image/png</FORMAT>
>>> <LAYERS>basic</LAYERS>
>>> </params>
>>> </getmap>
>>>
>>> <http>
>>> <url>http://vmap0.tiles.osgeo.org/wms/vmap0</url>
>>> </http>
>>> </source>
>>>
>>> <tileset name="test">
>>> <source>vmap0</source>
>>> <cache>disk</cache>
>>> <grid>WGS84</grid>
>>> <grid>g</grid>
>>> <format>PNG</format>
>>> <metatile>5 5</metatile>
>>> <metabuffer>10</metabuffer>
>>> <expires>3600</expires>
>>> </tileset>
>>>
>>>
>>> <default_format>JPEG</default_format>
>>>
>>> <service type="wms" enabled="true">
>>> <full_wms>assemble</full_wms>
>>> <resample_mode>bilinear</resample_mode>
>>> <format>JPEG</format>
>>> <maxsize>4096</maxsize>
>>> </service>
>>> <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"/>
>>>
>>> <errors>report</errors>
>>> <lock_dir>/tmp</lock_dir>
>>>
>>> </mapcache>
>>>
>>> El 10/05/12 12:46, thomas bonfort escribió:
>>>
>>>> Sorry, pressed send too fast...
>>>>
>>>> you must use
>>>>
>>>> <IfModule mapcache_module>
>>>>    <Directory /path/to/directory>
>>>>       Order Allow,Deny
>>>>       Allow from all
>>>>    </Directory>
>>>>    MapCacheAlias /mapcache "/path/to/directory/mapcache.xml"
>>>> </IfModule>
>>>>
>>>> and not
>>>>
>>>> <Location "/cgi-bin/">
>>>>    SetEnv MAPCACHE_CONFIG_FILE
>>>>
>>>>
>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml"
>>>> </Location>
>>>>
>>>>
>>>> On Thu, May 10, 2012 at 12:43 PM, thomas bonfort
>>>> <thomas.bonfort at gmail.com>    wrote:
>>>>>
>>>>> the instructions for running mapcache as an apache module are on the
>>>>> page you linked, more precisely:
>>>>>
>>>>>
>>>>> http://mapserver.org/trunk/mapcache/install.html#apache-module-specific-instructions
>>>>>
>>>>> --
>>>>> thomas
>>>>>
>>>>> On Thu, May 10, 2012 at 12:33 PM, Helen San Segundo Navazo
>>>>> <hsansegundo at meteo.cat>    wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I'm new using mapcache. I've tried to install it following the
>>>>>> instructions
>>>>>> on http://mapserver.org/trunk/mapcache/install.html.
>>>>>>
>>>>>> First
>>>>>>
>>>>>> $./configure
>>>>>> $make
>>>>>> $sudo make install
>>>>>>
>>>>>>
>>>>>> and after the apache module
>>>>>>
>>>>>> $sudo make install-module
>>>>>> $sudo ldconfig
>>>>>>
>>>>>>
>>>>>> On my httpd.conf I've added
>>>>>>
>>>>>> <Location "/cgi-bin/">
>>>>>>    SetEnv MAPCACHE_CONFIG_FILE
>>>>>>
>>>>>>
>>>>>> "/home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/mapcache.xml"
>>>>>> </Location>
>>>>>>
>>>>>> when I try to invoque mapcache in the apache log there is this error:
>>>>>>
>>>>>> /usr/lib/cgi-bin/mapcache: line 202: cd:
>>>>>> /home/curs/Desarrollo/Aplicaciones/mapserver-mapcache-18a50e2/cgi: Not
>>>>>> a
>>>>>> directory
>>>>>> gcc: mapcache.c: No such file or directory
>>>>>> gcc: ../lib/.libs/libmapcache.so: No such file or directoryn[Thu May
>>>>>> 10
>>>>>> 11:57:23 2012] [error] [client 127.0.0.1] Premature end of script
>>>>>> headers:
>>>>>> mapcache
>>>>>>
>>>>>> the directory exists and has permisions to access
>>>>>>
>>>>>> Somebody knows how to solve it?
>>>>>> Thanks in advance,
>>>>>> Helen
>>>>>> _______________________________________________
>>>>>> mapserver-users mailing list
>>>>>> mapserver-users at lists.osgeo.org
>>>>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>>>
>
> _______________________________________________
> 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