[Solved] Apache Modules lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- ahiggins · 2018-02-28 15:39 Ok what am I missing here?, I Select File, New... Apache Module from the file menu, but I am unable to compile the project, Am I doing something wrong. It fails with regards the Application identifier (I'm guessing due to no TForm or the like please see attached). Its not a big deal, I can just create a library as I normally would, I just like to use the features of the IDE where I can. ---------------------------------------------------------------------- nummer8 · 2018-03-01 08:18 Hi, I check out several older versions of lazarus. The fpapache unit is changed a lot two years ago. The examples haven't changed. I added the Application to the var. Now the module compiles. In the previous version of the fpapache module this was handled in the pfapache module. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Var  DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix}  Application:TApacheApplication;     //<======= Exports defaultmodule name ModuleName; begin  Application.Title:='mod_apache1';  Application.ModuleName:=ModuleName;  Application.HandlerName:=HandlerName;  Application.SetModuleRecord(DefaultModule);  Application.Initialize;end. I haven't used the apache module and I haven't tested it but this could be a starting point. Hope this helps. Jos ---------------------------------------------------------------------- ahiggins · 2018-03-01 13:50 Jos, many thanks for getting back, kind of make more sense now to me. I added the the suggested line, and it compiles with no errors. but i get a "Segmentation fault" reported when i try to load the mod. kind regards Tony ---------------------------------------------------------------------- nummer8 · 2018-03-01 14:02 Tony, Like I wrote. I never used it so I could not tell you why you get this error. Here a link to the files in the trunk. https://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/fcl- web/src/base/ and the according bugreport which is mentioned. https://bugs.freepascal.org/view.php?id=26301 I will create a module and try to use it. Maybe I can find something. Jos ---------------------------------------------------------------------- ahiggins · 2018-03-02 13:31 Jos, Finally made some progress, thanks to your tips and the forum links. Application:TApacheApplication;     //<======= I did not use this line but it sure did put me on the right track, what I did was to include the "custapache" unit in the uses statement at the beginning, this allowed me to compile the demo project without any amendments. Just a quick note of thanks to this forum, in my job I get given a problem and the solution I'm expected to come up with  is always required to be robust, fast and needed by yesterday! Without FPC/Lazarus and this forum I'm sure my job would be a lot more difficult. I've posted 2 questions in the last week or so regarding Apache Modules and had answers/tips/advise within a matter of hours, long live FPC/Lazarus!!!. I'll get of my soap box now.