<HTML>
<HEAD>
<TITLE>Re: [mapserver-users] Production mapserver</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Jeff,<BR>
<BR>
For the WMS Benchmarking effort, we used the FastCGI library from <a href="http://www.fastcgi.com">http://www.fastcgi.com</a>.<BR>
<BR>
It is the mapserv executable that you will call via fastcgi. <BR>
<BR>
We set up a separate fcgi-bin path for mapserver with fastcgi. That is not actually required. The URL here would be <a href="http://server/fcgi-bin/mapserv?map=XXX">http://server/fcgi-bin/mapserv?map=XXX</a><BR>
<BR>
Our apache setup looked like this<BR>
<BR>
ScriptAlias /fcgi-bin/ "/opt/mapserver/fcgi-bin/"<BR>
<BR>
<Directory /opt/mapserver/fcgi-bin/><BR>
SetHandler fcgid-script<BR>
Options +ExecCGI +FollowSymLinks<BR>
# Customize the next two directives for your requirements.<BR>
Order allow,deny<BR>
Allow from all<BR>
</Directory><BR>
<BR>
<IfModule fcgid_module><BR>
FcgidInitialEnv LD_LIBRARY_PATH /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserver/lib:/oracle/instantclient_11_2<BR>
FcgidMinProcessesPerClass 0 <BR>
FcgidIdleScanInterval 1 <BR>
FcgidProcessLifeTime 10<BR>
FcgidIOTimeout 100<BR>
FcgidMinProcessesPerClass 0<BR>
</IfModule><BR>
<BR>
Mike<BR>
<BR>
<BR>
-- <BR>
Michael Smith<BR>
Remote Sensing/GIS Center<BR>
US Army Corps of Engineers<BR>
<BR>
<BR>
On 3/21/11 3:30 PM, "Jeff Dege" <<a href="jeff.dege@korterra.com">jeff.dege@korterra.com</a>> wrote:<BR>
<BR>
<FONT COLOR="#0000FF">> So, from what I'm hearing Apache vs. Lighttpd isn't going to make a <BR>
> significant difference.<BR>
> <BR>
> Cgi vs. FastCGI very definitely will.<BR>
> <BR>
> Great. So how do I get FastCGI working?<BR>
> <BR>
> There are docs at: <a href="http://mapserver.org/optimization/fastcgi.html">http://mapserver.org/optimization/fastcgi.html</a><BR>
> <BR>
> They are only getting me part of the way there.<BR>
> <BR>
> 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and <BR>
> mod_fcgi. Are these both needed? Only one needed? Are they replacements, <BR>
> alternatives, or entirely unrelated to each other?<BR>
> <BR>
> 2. In the Configuration section of the above doc, it says to modify http.conf <BR>
> to load the module, and to add a handler. The Ubuntu packages placed <BR>
> fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. I expect that I <BR>
> simply need to create a link to these in /etcs/apache2/mods-enabled, the way <BR>
> the others are.<BR>
> <BR>
> 3. The Configuration section also says to add a FastCgiConfig command. Where <BR>
> should this be? <BR>
> <BR>
> I see nothing in that configuration that indicates that it's the mapserv <BR>
> executable I want to run via fastcgi. <BR>
> <BR>
> <BR>
> _______________________________________________<BR>
> mapserver-users mailing list<BR>
> <a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><BR>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><BR>
</FONT></SPAN></FONT>
</BODY>
</HTML>