fpWeb and Apache modules. Writing using TFPWebModule lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- FreekNel · 2009-04-15 15:45 Hi all. Excuse me for my English. I have a trouble. I want to write apache module. I have installed webLaz package. Then from IDE select Create new apache module. IDE generates project file and datamodule file, where I locate a new action with it handler. In initialization section: RegisterHTTPModule('TFPWebModule1', TFPWebModule1); Project compiles successfully, but when I try to send request to my httpd fails. Any reasons? I've tried to write log file on creating TFPWebModule, but it have no results. ---------------------------------------------------------------------- Loesje · 2009-04-16 20:43 First of all, you have to restart apache after you've compiled your module and put it in place. Did you set Handled to true? And check the apache-log for error-messages of the module. And what happens exactly when 'httpd' fails? Does it crash?!? ---------------------------------------------------------------------- FreekNel · 2009-04-17 08:02 Yes, I`ve restarted my apache server. httpd.conf is correct, Handled property is set to True in OnRequest event handler. Here is part of error.log file: //after starting apache server [Fri Apr 17 11:51:21 2009] [notice] Child 1588: Starting thread to listen on port 80. //after my request [Fri Apr 17 11:51:37 2009] [notice] Parent: child process exited with status 3221225477 -- Restarting. This problem exist when I try to use fpWeb components. When I use only fpApache.pp for TApacheApplication and set AlternateHandler to my procedure it works good. function Handler(r: Prequest_rec): Integer; cdecl; .....   Application.ModuleName := ModuleName;   Application.HandlerName := HandlerName;   Application.SetModuleRecord(DefaultModule);   AlternateHandler := @Handler;   Application.Initialize; But in this case I can't access to data from POST query probably, I use ap_get_client_block incorrect, but I do it as in "Writing Apache Modules with Perl and C" does My platform is Win32. When apache fails I have a message from system like "Apache HTTP Server - detected error... Application will be closed... Send report to MS?"