[Solved] Apache 2.4.62 - AH00534: httpd: Configuration error: More than one MPM loaded.

 If you are building Apache/httpd from source (in my case it is httpd 2.4.62) and you encounter this error:

AH00534: httpd: Configuration error: More than one MPM loaded.

But you are absolutely sure that in your config file you just enable 1 module, here is what you need to check:

In my case, my command of building Apache from source is this:

./configure --prefix=/usr/local/httpd-2.4.62 \
--enable-proxy \
--enable-proxy-http \
--enable-proxy-ajp \
--enable-forward \
--enable-module=most \
--enable-mods-shared=all \
--enable-so \
--enable-include \
--enable-headers \
--enable-deflate \
--enable-cache \
--enable-disk-cache \
--enable-mem-cache \
--enable-rewrite \
--enable-static-support \
--enable-expires \
--with-apr-util=/usr/local/apr \
--with-apr=/usr/local/apr

Important: If you run httpd -M, you will see that mpm-event is "static", which means it is compiled as "static" module, i.e. pre-build and loaded by default.

But if you add:

--enable-mpms-shared \
--with-mpm=prefork

You will be able to use "shared" module instead of "static", which means you can control which mpm to load.

So simply add the above lines and re-run `./configure` to build your code again

Hope it helps.


Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

How to fix fancy box/Easy Fancybox scroll not work in mobile

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services