[Lazarus] fpWeb FCGI Setup

ABorka fpc-devel at aborka.com
Mon May 23 02:25:32 CEST 2011


> Hi all,
>
> I'm trying to get fcgi setup and running on my windows box so I can test
> some of modules and I'm still try to figure out what I need to do.
>
> A sample fcgi project produces an exception when run "Failed to open
> input handle passed from server. Socket error 10038.".
>
> I had thought that the fcgi server just started and waited for
> connections from the webserver but it looks like it is trying to connect
> to an assume socket as soon as it starts. Sorry, I can't tell exactly,
> the ide won't let me debug down passed Application.Run line in the .lpr.
>
> Not sure how I would debug like without it being started already...
>
> Windows Vista, Lazarus snapshot a week or so old.
>
> Thanks,
>
> --
> Warm Regards,
>
> Lee

You need to specify the port your FCGI application will be listening on 
in your project main file (.lpr):

.
.
.
   Application.Title:='My FCGI Application';
   Application.Port:=2015;//Port the FCGI application is listening on
   Application.Initialize;
   Application.Run;
.
.
.


AB





More information about the Lazarus mailing list