[Lazarus] fpweb with fcgi samples

Michael Van Canneyt michael at freepascal.org
Thu May 27 16:52:42 CEST 2010



On Thu, 27 May 2010, Joost van der Sluis wrote:

> On Thu, 2010-05-27 at 16:36 +0700, Bee Jay wrote:
>
>> I'm about to study fpWeb and its FCGI support. But I didn't see any example that are using FCGI in SVN trunk. There are only CGIs and Apache modules. Can they be used with FCGI simply by changing the used unit? I also couldn't find any suffiecient docs about the FCGI support. Any hints?
>
> Yes, in principle you only have to change the unit in you project file.
>
> And further there is no real difference between a cgi and a fcgi
> application.
>
> And when you use the embedded-webserver version. (Also only by changing
> the unit) you can directly run the application inside the debugger.

You can do this for fcgi as well, if you set the port number before
the Run statement. Requires the use of ExternalCGI feature in Apache, or
the new CGI->FastCGI gateway.

Michael.




More information about the Lazarus mailing list