Help Disable Mod Apache mpm_forke

SYSTEM INFORMATION
OS Ubuntu Ubuntu Linux 24.04.3
Virtualmin version 2.600

Your help in disabling the Apache mpm_prefork module.

I try to leave the box empty in modules and it gives me an error.

AH00534: apache2: Configuration error: No MPM loaded.

I tried using the console with

sudo a2dismod mpm_prefork

and my sites are down.

What are the correct steps?

Thank you for your valuable help.

why would you want to disable it ? have a read of this Which to install: Apache Worker or Prefork? What are the (dis-)advantages of each? - Server Fault from this you will realise you need one or the other

I thought event or worker was the default MPM on modern Linux distros? event is the most modern, worker is fine, prefork is only preferred if you’re using mod_php or other non-thread safe module(s).

I’m guessing you’ve installed mod_php? That module requires mod_prefork because it is not thread safe. You should never use mod_php. So, the mistake here was installed mod_php, which switched your system to using the mod_prefork MPM, and now you’ve got a mess to clean up if you don’t want to use mod_prefork. You need to start by uninstalling mod_php (if that is how you got to this situation).