Error on deployment of an codegniter php application
securecsharptek
FREEOP

19 days ago

When i try to deploy an codegniter application which one basically in php i got the More than one MPM load error- build is successfull but deployment error-{"message":"AH00534: apache2: Configuration error: More than one MPM loaded.","severity":"info","attributes":{"level":"info"},"timestamp":"2026-07-08T05:01:47.590689275Z"}

$10 Bounty

3 Replies

Railway
BOT

19 days ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway 19 days ago


dvjn-technosol
FREETop 10% Contributor

18 days ago

This happens when your Apache image has more than one MPM module (prefork/event/worker) enabled at the same time — Apache allows exactly one. It's almost always caused by a Dockerfile step that a2enmods a second MPM without first disabling the one already active in the base image.

If you're using php:apache (mod_php, non-thread-safe) with CodeIgniter, you need mpm_prefork and nothing else. Add this near the top of your Dockerfile, before installing PHP extensions:

RUN a2dismod mpm_event mpm_worker 2>/dev/null; a2enmod mpm_prefork

If instead you're on PHP-FPM (php:fpm + a separate Apache/nginx layer), you want the opposite — mpm_event, not prefork:

RUN a2dismod mpm_prefork 2>/dev/null; a2enmod mpm_event

Check whether your Dockerfile (or a Nixpacks-generated one, if you're not using a custom Dockerfile) has an a2enmod line for a second MPM — that's the one to remove or reorder.


dawinz
FREETop 10% Contributor

18 days ago

AH00534: More than one MPM loaded is an Apache configuration issue rather than a Railway deployment issue.

Check your Apache config and make sure only one MPM is enabled (mpm_event, mpm_prefork, or mpm_worker). This usually happens when multiple MPM modules are loaded from different config files or when a custom image enables another MPM on top of the default.

A couple of questions that would help narrow it down:

Are you deploying with a Dockerfile or using Nixpacks?

Could you share your Dockerfile (or Apache config), especially anything that enables modules with a2enmod or modifies /etc/apache2?

The build succeeding but the container failing at startup is consistent with Apache refusing to start because of the duplicate MPM configuration.


malikbasit09786-hub
FREE

18 days ago

gdg


Welcome!

Sign in to your Railway account to join the conversation.

Loading...