How to do it...

Let's create the Apache module. We'll create a fake management system with a list of users. There is one resource that's accessible with two HTTP verbs: GET and POST:

  1. Navigate to File | New | Other.
  2. Navigate to Delphi Projects | WebBroker | Web Server Application.
  3. The first wizard asks you for which platform the application will be created: in this case, we leave things as they are (we will see the deploy on Linux in the next chapter), so click Next.
  4. In the resultant modal dialog, select Apache dynamic link module and click Next.
  5. In the combo box, select Apache version 2.4 and write peoplemanager_module as the module name.
  6. Click Finish.
  7. Save the project using the following file names:
    • mod_peoplemanager.dproj
    • WebModuleU.pas ...

Get Delphi Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.