On Sun, 2011-05-08 at 23:41 -0400, Lee Jenkins wrote: > I have a web type project coming up and decided to poke around in the fpWeb > stuff. My, you guys have been busy, I never took a good look around the > fpweb/laz web sources till today. I was thinking of using php with symfony > or > one of the smaller frameworks, but its a bit overkill for my project. I'm > considering using fpweb/lazarus so I'm writing a small test application. > > I thought I saw mention of a embedded web server available? I currently have > a > pretty simple embedded server using synapse that is a modified version of the > demo that comes with the sources. I was thinking of writing a > TCustomWebApplication to use that. But I did remember somewhere in a recent > thread, there was mention of an existing embedded server...?
fppkg update fppkg install embweb restart Lazarus In Lazarus->install packages-> select embweb-> install Then create a new 'web application'. If you add the define 'FCGI' it will be fastcgi, if you define 'CGI' if will be a cgi-application. If you do not define anything, you can just run the application and connect on port 7004. Note that you need a working fppkg configuration. But in most cases it will work out-of-the-box. You probably only have to set the path to your Lazarus installation: http://wiki.freepascal.org/fppkg#Configuration_for_use_with_Lazarus Joost. -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
