Hello, Adrian<br>add to your apache config the folowing:<br><br>ScriptAlias /fcgi-bin/ &quot;path to your mapserver binary file&quot;<br>&lt;Location &quot;/fcgi-bin&quot;&gt;<br>    # The following line activates the fastCGI script to all files in location<br>

    SetHandler fcgid-script<br>    ...<br>&lt;/Location&gt;<br>regards, michael<br><br><div class="gmail_quote">2009/10/21 Adrian Popa <span dir="ltr">&lt;<a href="mailto:adrian_gh.popa@romtelecom.ro">adrian_gh.popa@romtelecom.ro</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Hello again,<br>
<br>
I&#39;ve compiled mapserver with fast cgi support and I&#39;ve installed
fastcgi on my apache. All seems ok, but I&#39;m not sure if mapserver runs
as fastcgi! I followed the instructions from here:
<a href="http://mapserver.org/optimization/fastcgi.html" target="_blank">http://mapserver.org/optimization/fastcgi.html</a><br>
<br>
Here&#39;s what I&#39;ve added in the configuration:<br>
<br>
in httpd.conf (Apache2):<br>
<br>
LoadModule fastcgi_module modules/mod_fastcgi.so<br>
<br>
...<br>
&lt;IfModule mod_fastcgi.c&gt;<br>
  AddHandler fastcgi-script .fcgi<br>
  FastCgiIpcDir /tmp/fastcgi<br>
  FastCgiConfig -initial-env PROJ_LIB=/usr/share/proj -initial-env
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/pgsql/lib
-appConnTimeout 60 -idle-timeout 60 -init-start-delay 1  -minProcesses
2 -maxClassProcesses 30 -startDelay 5<br>
&lt;/IfModule&gt;<br>
<br>
<br>
When httpd restarts, I get in the logs that fastcgi starts ok: <br>
[Wed Oct 21 15:43:04 2009] [notice] FastCGI: process manager
initialized (pid 12570)<br>
<br>
I think I should somehow link mapserv to fastcgi - because I see no
obvious connection. The script handler is only for .fcgi, but
mapserver&#39;s compilation didn&#39;t generate any fcgi files... It seems to
me, mapserver still runs as a cgi process. If I list the running
processes when there are no queries to the webserver, there is no
mapserv process. When I list the processes while doing queries, there
are several mapserv processes running.<br>
<br>
Thanks,<br><font color="#888888">
Adrian</font><div><div></div><div class="h5"><br>
<br>
Adrian Popa wrote:
<blockquote type="cite">
  
Thanks,<br>
  <br>
I&#39;m compiling mapserver with fast-cgi support and see how that works
out.<br>
  <br>
Any idea if there is a difference in terms of speed if I make normal
CGI queries vs WMS queries?<br>
  <br>
Regards,<br>
Adrian<br>
  <br>
Pavel Iacovlev wrote:
  <blockquote type="cite">
    <pre>Fast-cgi is one process that manages all your connections (acts more
like apache module) cgi creates a new process for every connection so
fast-cgi is faster and consumes less resources.
The best performance you should get with tilecache serving TMS(If it&#39;s
supported by your client, openlayers supports it), images are request
directly so there is almost no overhead

On Wed, Oct 21, 2009 at 10:42 AM, Adrian Popa
<a href="mailto:adrian_gh.popa@romtelecom.ro" target="_blank">&lt;adrian_gh.popa@romtelecom.ro&gt;</a> wrote:
  </pre>
    <blockquote type="cite">
      <pre>Hello, sorry for this noobie question, but I have been running mapserver as
a cgi process and sometimes I need to make lots of calls to it to get the
data I want. I have used TileCache to get the layers I need and which don&#39;t
change over time and it speeds things up considerably.

I was wondering - is it possible (and is it more efficient?) to run
mapserver as fast-cgi? Would it increase speed? The mapserver in the cgi-bin
directory is already a binary file - so I&#39;m not sure if fast-cgi would do
any good.

Also, would I have any extra speed benefits if I make WMS queries instead of
regular cgi queries?

Thank you,
Adrian

_______________________________________________
mapserver-users mailing list
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>

    </pre>
    </blockquote>
    <pre>  </pre>
  </blockquote>
  <br>
  <br>
</blockquote>
</div></div></div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>