9 hours ago
My WordPress service on Railway is showing 502 Bad Gateway. Deployment is Active/Online, but the site blog.love-together.com doesn't load. Logs repeatedly show: AH00534: apache2: Configuration error: More than one MPM loaded. The WordPress persistent volume is also being mounted. Please help fix the Apache/MPM configuration and restore the site. I must keep the existing persistent volume and cannot lose any existing WordPress uploads/media. Please provide the exact Railway/Docker configuration changes needed.
5 Replies
9 hours ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • about 9 hours ago
9 hours ago
The AH00534: apache2: Configuration error: More than one MPM loaded error occurs because Apache is attempting to load multiple Multi-Processing Modules (such as mpm_event, mpm_worker, and mpm_prefork) simultaneously. When Apache fails to start due to this configuration conflict, Railway's proxy cannot reach the application, resulting in the 502 Bad Gateway.
Your persistent volume data (wp-content/uploads) is completely safe, provided you do not delete the volume or change its mount path.
To fix this while keeping your existing persistent volume intact, use a custom Dockerfile for your Railway service to explicitly disable the conflicting MPMs and enable a single module (typically mpm_prefork for standard PHP setups).
Required Configuration Changes
- Create a Dockerfile in the root directory of your project repository with the following contents:
FROM wordpress: latest
Disable conflicting MPM modules and enable mpm_prefork
RUN a2dismod mpm_event mpm_worker && a2enmod mpm_prefork
-
Push this change to your connected GitHub repository (or deploy via Railway CLI).
-
Ensure your Railway service settings retain the existing persistent volume mounted to /var/www/html (or your specific WordPress web root path).
This adjustment forces Apache to initialize with only one MPM active, resolving the crash immediately and bringing your site back online without affecting any media or database records stored in your volume.
nitish754

7 hours ago
What’s your current start command?
an hour ago
the site is up