[MapServer-users] cgi/fcgi mapcache problem

Richard Greenwood richard.greenwood at gmail.com
Tue Nov 29 18:56:02 PST 2022


I have been running mapcache as an Apache module. I'm now trying to get the
same configuration running as a FastCGI process. But making a CGI or FCGI
request I get the error message "missing a service". I have the mapcache
binary installed in the Ubuntu cgi-bin directory. The full urls are below,
but the only change in the urls is from /mapcache/? to /cgi-bin/mapcache?
or /cgi-bin/mapcache.fcgi? The query string is the same. The query string
contains a SERVICE key.

With the FastCGI I can see the mapcache.fcgi process is still there for a
while as I would expect. The Apache error log shows a warning with the same
"missing a service" and a response code of 404. But the 404 is clearly
being generated by the mapcache process, not Apache.

This is on Ubuntu 22.02 with standard repo install of mapcache 1.12. I
tried it on two different computers, same problem. One computer did not
have the Apache module installed so it's not a conflict between the module
and the CGI. I tried changing the WMS version and a few other random things.

Apache module, works:
https://www2.greenwoodmap.com/mapcache/?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125

FastCGI, error:
https://www2.greenwoodmap.com/cgi-bin/mapcache.fcgi?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125

CGI, same error:
https://www2.greenwoodmap.com/cgi-bin/mapcache?LAYERS=laramie-contours&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&WIDTH=256&HEIGHT=256&CRS=EPSG%3A3736&STYLES=&BBOX=753300.78125%2C248291.015625%2C753642.578125%2C248632.8125
-- 
Richard W. Greenwood
www.greenwoodmap.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20221129/84e5c190/attachment.htm>


More information about the MapServer-users mailing list