1👍
I can change how the generated configuration is done, but can you indicate what Linux distribution the version of Apache you are using was supplied on, or if you compiled it yourself. Can you also provide the output in your question for running:
httpd -M
Change the ‘httpd’ in that command to whatever your Apache installation has called the main Apache HTTP server executable if it has been changed.
Right now the generated configuration expects that you are using an Apache installation which is built to use dynamic shared objects (DSO) for all Apache modules and doesn’t statically compile in specific modules. It must also support dynamic loading of additional modules such as mod_wsgi.
I didn’t contemplate that people would use an Apache version with statically compiled in modules, as doing that for the bulk of modules would defeat the purpose of trying to trim the memory size of Apache down by only loading what was needed.
In future if you have any questions about mod_wsgi it is recommended that the mod_wsgi mailing list be used. For an actual error/problem that looks to derive from mod_wsgi, use the issue tracker on the github mod_wsgi repository. StackOverflow in general is a poor place to ask about issues for mod_wsgi as StackOverflow isn’t a forum and a large number of mod_wsgi questions get closed before they get answered because self styled moderators who know nothing about mod_wsgi can’t actually see what the question posed may be is asking and wrongly close them as invalid when in a lot of cases there are simple answers if they actually knew the topic.
UPDATE 1
Further updates on this issue were done over on ServerFault.