Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-10

FastCGI?

14 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

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

Thanks,

Warm Regards, Lee

Reply by email

Lee Jenkins
to Lee Jenkins
Lee Jenkins wrote 7 lines
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.

Warm Regards, Lee

Reply by email

Joost van der Sluis
to Lee Jenkins
Lee Jenkins wrote 18 lines
Lee Jenkins wrote: > > 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.

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

Reply by email

Osvaldo Filho
to Joost van der Sluis

How can i use embedded webserver ?

2009/10/6 Joost van der Sluis :

Show quoted text 42 lines
On Tue, 2009-10-06 at 09:28 -0400, Lee Jenkins wrote: > Lee Jenkins wrote: > > > > 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. 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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Lee Jenkins
to Lee Jenkins
Lee Jenkins wrote 7 lines
Osvaldo Filho wrote: > How 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,

Warm Regards, Lee

Reply by email

Micha Nelissen
to Lee Jenkins
Lee Jenkins wrote
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.

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

Reply by email

Lee Jenkins
to Micha Nelissen
Micha Nelissen wrote 11 lines
Lee Jenkins wrote: > 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. 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.

Warm Regards, Lee

Reply by email

Lee Jenkins
to Micha Nelissen: Maybe TLHTTPServer + (fast)CGI handler in lNet was meant? See…
Micha Nelissen wrote 10 lines
Lee Jenkins wrote: > 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. 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,

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,

Warm Regards, Lee

Reply by email

Joost van der Sluis
to Micha Nelissen: Maybe TLHTTPServer + (fast)CGI handler in lNet was meant? See…
Micha Nelissen wrote 6 lines
Lee Jenkins wrote: > 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. Maybe TLHTTPServer + (fast)CGI handler in lNet was meant?

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

Reply by email

Lee Jenkins
to Joost van der Sluis
Joost van der Sluis wrote 15 lines
On Sat, 2009-10-10 at 12:44 +0200, Micha Nelissen wrote: > Lee Jenkins wrote: >> 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. > Maybe TLHTTPServer + (fast)CGI handler in lNet was meant? 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.

OK, that is what I thought you meant. Thank you.

Show quoted text 8 lines
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

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,

Warm Regards, Lee

Reply by email

Micha Nelissen
to Lee Jenkins: Is there any instructions on how to setup the lnet fast cgi server? I'm looking through…
Lee Jenkins wrote 5 lines
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?

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

Reply by email

Lee Jenkins
to Micha Nelissen
Micha Nelissen wrote 18 lines
Lee Jenkins wrote: > 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? 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,

Warm Regards, Lee

Reply by email