<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/ &quot;/opt/mapserver/fcgi-bin/&quot;<BR>
<BR>
&lt;Directory /opt/mapserver/fcgi-bin/&gt;<BR>
&nbsp;&nbsp;&nbsp;SetHandler fcgid-script<BR>
&nbsp;&nbsp;&nbsp;Options +ExecCGI +FollowSymLinks<BR>
&nbsp;&nbsp;&nbsp;# Customize the next two directives for your requirements.<BR>
&nbsp;&nbsp;&nbsp;Order allow,deny<BR>
&nbsp;&nbsp;&nbsp;Allow from all<BR>
&lt;/Directory&gt;<BR>
<BR>
&lt;IfModule fcgid_module&gt;<BR>
&nbsp;&nbsp;FcgidInitialEnv LD_LIBRARY_PATH /usr/lib64:/usr/lib:/usr/local/lib:/opt/mapserver/lib:/oracle/instantclient_11_2<BR>
&nbsp;&nbsp;FcgidMinProcessesPerClass 0 &nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;FcgidIdleScanInterval 1 &nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;FcgidProcessLifeTime 10<BR>
&nbsp;&nbsp;FcgidIOTimeout 100<BR>
&nbsp;&nbsp;FcgidMinProcessesPerClass 0<BR>
&lt;/IfModule&gt;<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, &quot;Jeff Dege&quot; &lt;<a href="jeff.dege@korterra.com">jeff.dege@korterra.com</a>&gt; wrote:<BR>
<BR>
<FONT COLOR="#0000FF">&gt; So, from what I'm hearing Apache vs. Lighttpd isn't going to make a <BR>
&gt; significant difference.<BR>
&gt; <BR>
&gt; Cgi vs. FastCGI very definitely will.<BR>
&gt; <BR>
&gt; Great. &nbsp;So how do I get FastCGI working?<BR>
&gt; <BR>
&gt; There are docs at: <a href="http://mapserver.org/optimization/fastcgi.html">http://mapserver.org/optimization/fastcgi.html</a><BR>
&gt; <BR>
&gt; They are only getting me part of the way there.<BR>
&gt; <BR>
&gt; 1. I'm seeing two packages, that are available for Apache, mod_fastcgi and <BR>
&gt; mod_fcgi. &nbsp;Are these both needed? &nbsp;Only one needed? &nbsp;Are they replacements, <BR>
&gt; alternatives, or entirely unrelated to each other?<BR>
&gt; <BR>
&gt; 2. In the Configuration section of the above doc, it says to modify http.conf <BR>
&gt; to load the module, and to add a handler. &nbsp;The Ubuntu packages placed <BR>
&gt; fastcgi.conf and fastcgi.load in /etc/apache2/mods-available. &nbsp;I expect that I <BR>
&gt; simply need to create a link to these in /etcs/apache2/mods-enabled, the way <BR>
&gt; the others are.<BR>
&gt; <BR>
&gt; 3. The Configuration section also says to add a FastCgiConfig command. &nbsp;Where <BR>
&gt; should this be? <BR>
&gt; <BR>
&gt; I see nothing in that configuration that indicates that it's the mapserv <BR>
&gt; executable I want to run via fastcgi. &nbsp;<BR>
&gt; <BR>
&gt; <BR>
&gt; _______________________________________________<BR>
&gt; mapserver-users mailing list<BR>
&gt; <a href="mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><BR>
&gt; <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>