I am trying to load a module based on a condition. {PHPMODULENAME} is replaced in the config by the AMP Server I am using - so please don't get confused.
<If "'{PHPMODULENAME}' == 'php8_module'">
LoadModule module1 "..."
</If>
<Else>
LoadModule module2 "..."
</Else>
If the condition is true it should load module1 - because only then the module1 is available and module2 isn't. And vice versa.
However when I try to start Apache, it throws an error, because either module1 or module2 is missing. I know that - that's why I add the IF condition.