[fpc-pascal] CGI under Linux using FCL-Web

Christian Kranich office at kranich.com
Wed Apr 4 13:11:45 CEST 2012

Hello All,

I just started to use FPC in  a project requiring a Webinterface.
When porting the Lazarus/Win32 fpc-web examples (worked fine)
to X86/Linux(Ubuntu) and Arm-Linux, I started to struggle.

Under Linux, the cgi program terminates w/o any output and w/o any
errormessages. So Apache complains about premature page end.

=> Is there anything special to consider when using fcl-web under

=> The bread and butter cgi example (mini.pas) did run, but I like the
concept of FCL-Web offering scalability between CGI, FastCGI, Apache Module
and do not want to reinvent the wheel...

Currently I started copying the fcl-web sources to project folder and pinpointing
with writelns to crosscheck what is running and what is not.

Kind Regards,

   Christian Kranich  

More information about the fpc-pascal mailing list