[mapserver-dev] - MapCache FastCGI

scott159 at free.fr scott159 at free.fr
Sun Feb 26 05:54:33 EST 2012


Hi,

I try again to configure mapcache to run with fastcgi mode. Here's fcgid.conf :

<IfModule mod_fcgid.c>
   IPCCommTimeout 120
   MaxProcessCount 10
   FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/home/scott/mapcache/sources/mapcache.xml"
   <Location /map.fcgi>
      Order Allow,Deny
      Allow from all
      SetHandler fcgid-script
   </Location>
   ScriptAlias /map.fcgi "/home/scott/mapcache/sources/cgi/mapcache"
</IfModule>

I modify last line because mapcache.c can be find only in folder /cgi after compilation.

When I try to access with "http://127.0.1.1/map.fcgi", I have an error access. Here's error.log :

[] [warn] [client 127.0.1.1] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[] [error] [client 127.0.1.1] Premature end of script headers: mapcache

What's wrong ?

Thanks

scott

----- Mail original -----
De: scott159 at free.fr
À: "David Middlecamp" <dmiddlecamp at azavea.com>
Cc: "mapserver-dev" <mapserver-dev at lists.osgeo.org>
Envoyé: Jeudi 16 Février 2012 05:35:59
Objet: Re: [mapserver-dev] - MapCache FastCGI

Hi,

I try to replace this line with :
"/home/user/mapserver/mapcache/cgi-bin/mapcache"

But I have un accces denied when I launch http://127.0.1.1/map.fcgi

Thanks

scott

----- Mail original -----
De: "David Middlecamp" <dmiddlecamp at azavea.com>
À: scott159 at free.fr
Cc: "mapserver-dev" <mapserver-dev at lists.osgeo.org>
Envoyé: Mardi 14 Février 2012 21:27:25
Objet: Re: [mapserver-dev] - MapCache FastCGI

Hi Scott,


That line of your apache config is trying to create a link to your mapcache binary, that will be handled by fastcgi. You'll want to find your copy of the 'mapcache' binary (it won't be in "tbonfort").

After a successful installation, this file ends up in somewhere like (I think):


/usr/local/bin/mapcache


or you can just issue a find like so:
find / -name 'mapcache'


Thanks,
David






On Tue, Feb 14, 2012 at 3:14 PM, < scott159 at free.fr > wrote:


Hi,

I would like configure MapCache with FastCGI mode but I don't know how to do it because I can't find directory /mapserver/mapcache/src/ :

<IfModule mod_fcgid.c>
IPCCommTimeout 120
MaxProcessCount 10
FcgidInitialEnv "MAPCACHE_CONFIG_FILE" "/Users/tbonfort/dev/mapserver/mapcache/mapcache.xml"
<Location /map.fcgi>
Order Allow,Deny
Allow from all
SetHandler fcgid-script
</Location>
ScriptAlias /map.fcgi "/Users/tbonfort/dev/mapserver/mapcache/src/mapcache"
</IfModule>

Thanks a lot

scott
_______________________________________________
mapserver-dev mailing list
mapserver-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev




--
David Middlecamp, Software Developer

Azavea | 340 N 12th St, Ste 402, Philadelphia, PA
dmiddlecamp at azavea.com | T 215.701.7688 | F 215.925.2663
Web azavea.com | Blog azavea.com/blogs | @dmiddlecamp


More information about the mapserver-dev mailing list