<br><br><div class="gmail_quote">On 4 October 2010 12:26, Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
On Mon, 4 Oct 2010, Frank Church wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Does Lazarus/FPC have its own process launcher for FastCGI?<br>
</blockquote>
<br></div>
Why would you need a process launcher ?<div class="im"><br>
<br></div></blockquote><div><br>This is a new area for me. When I check the nginx, this is what I see.<br><br>1. At boot time, an fcgi launcher is loaded as part of the /etc/init.d sequence<br><br>2. This fcgi launcher is linked with an ip:port combination or unix socket, and specifies a program which launches the web developers cgi script.<br>
<br>3. The nginx configuration that for virtual host is configured with the same ip:port or unix socket. When it reads file names matching the cgi spec it dispatches them to the fcgi launcher listening on the ip:port, and this launches the cgi with the program it is configured with.<br>
<br>e.g for php programs, php files are sent to the php5-cgi executable via this command<br><br>#!/bin/sh<br>/usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -f /usr/bin/php5-cgi<br><br>From the nature of your reply I assume that the Lazarus exe takes the place of the /usr/bin/php5-cgi.<br>
<br>I built the helloworld program and I am running it as a CGI. Should I assume that it is a FastCGI as well?<br> <br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I am going to try the existing scripts for nginx, but it looks like they use<br>
their FastCGI scripts to launch the Lazarus exe's as a CGI.<br>
</blockquote>
<br></div>
Can you elaborate ? The webserver is supposed to start the CGI, and pass it<br>
a TCP/IP port to listen on. That's it.<br>
<br>
Michael.<br><font color="#888888">
<br>
--<br>
_______________________________________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Frank Church<br><br>=======================<br><a href="http://devblog.brahmancreations.com">http://devblog.brahmancreations.com</a><br>