Wasn't some work done recently to add FastCGI to lazarus? If so, which version must I have, trunk?
Thanks,

Mailing lists / lazarus / 2009-10
14 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Wasn't some work done recently to add FastCGI to lazarus? If so, which version must I have, trunk?
Thanks,
I've been looking around and I see definitions for FCGI in weblazideintf.pp but I'm not quite sure what I need to get it. I see the following:
{$IFNDEF VER2_0}{$IFNDEF VER2_2}
{$DEFINE HasFastCGISupport}
{$ENDIF VER2_0}{$ENDIF VER2_2}What other version of FPC is there? I was under the impression that 2.2X was all there was right now.
How can I get FastCGI Support in Lazarus? I can't use simple CGI since I need persistent state information and I most importantly, It would seem to me that FastCGI would be easy to debug as well.
Thanks for help,
BTW, nice to be developing some stuff in lazarus again.
There are also the 2.3.1 and at the moment even 2.5.1 development versions.
How can I get FastCGI Support in Lazarus? I can't use simple CGI since I need persistent state information and I most importantly, It would seem to me that FastCGI would be easy to debug as well.
Use a svn or snapshot version from fpc. Debugging with FCGI could be a little bit easier, but the easiest is to use the embedded webserver. I've posted this two months or so to this list.
I'll see if I can send a new update for it.
Joost
How can i use embedded webserver ?
2009/10/6 Joost van der Sluis :
Osvaldo Filho wroteHow can i use embedded webserver ?
Yes, that sounds good to me as well. Where to use ? Same fpc version?
Thanks,
I've looked for a couple of days trying to find a location of an "embedded web server" for lazarus or fpc and I have found nothing in sources or google.
I think Osvaldo was interested in find out more about it as well.
Thanks,
Lee Jenkins wroteI've looked for a couple of days trying to find a location of an "embedded web server" for lazarus or fpc and I have found nothing in sources or google.
Maybe TLHTTPServer + (fast)CGI handler in lNet was meant?
See lnet/examples/console/fphttpd for a simple webserver using lnet components. lNet integrates nicely into the LCL.
Micha
Thanks for the pointer, Micha.
I was thinking Joost might be referring to an embedded webserver that already had the LazWeb modules integrated.
I good but coldn't get that to work either and frankly, I've been at this one thing for 3 days and once again it looks like I'll have to give up and do it in Delphi or Visual Studio because I just don't have the time or patience to get things to work in lazarus.
Thanks again for the pointer though.
Maybe TLHTTPServer + (fast)CGI handler in lNet was meant? See…
Micha,
Is there any instructions on how to setup the lnet fast cgi server? I'm looking through the code and I'm a bit at a loss.
Does it work only with the lnet webserver or can it be used with apache/iis?
Thanks for help,
Thanks for the pointer, Micha. I was thinking Joost might be referring to an embedded…
Lee,
Have you looked at ExtPascal's embedded Web server option?
http://code.google.com/p/extpascal/wiki/WebServer_Embedded
Thanks.
-Phil
Maybe TLHTTPServer + (fast)CGI handler in lNet was meant? See…
Almost
See lnet/examples/console/fphttpd for a simple webserver using lnet components. lNet integrates nicely into the LCL.
There is an implementation which combines lnet with fcl-web. It's not in fpc's svn though, since lNet isn't.
As I already said, I posted it to this list a few months back. Here it is again, you need a recent version of fpc 2.5.1 for it. (It's easy to port to 2.3.x) lNet is included in a slightly modified version. License is modified lgpl as the other fcl-web parts.
http://menora.cnoc.nl/extern/fpc/embweb_20091012.tgz
Joost
OK, that is what I thought you meant. Thank you.
Appreciated, I'll take a look. In the meantime, I'm writing the bulk of it in Delphi and simply abstracting out the server mechanics so I can use it with laz web modules and its various types (cgi, fcgi, apache) as well as Delphi related frameworks like RealThinClient, intraweb, etc.
Thanks again,
Is there any instructions on how to setup the lnet fast cgi server? I'm looking through…
Hmm don't quite understand the question. In lNet exists:
* a webserver serves http protocol
* a handler serves the .php extension
* this handler talks to a php daemon via the fast cgi protocol
So it contains a fastcgi "client" interface so it can talk to a php daemon.
Does that explain?
Micha
Yes, I looked through the code a bit this weekend. Thanks,