Docker / httpd: Configuration Error: No MPM Download

I have a docker container based on the official httpd image. Out of nowhere (after a new build), it started crashing with an error:

AH00534: httpd: Configuration error: No MPM loaded.

Nothing more.

I am using the official httpd ( FROM httpd:2.4) image , and so far everything has been working fine.
The error appeared only after deleting all the images in my system usingdocker system prune -af

+12
source share
3 answers

(edit, thanks delboy1978uk ) This error can be avoided by applying a simple recommendation: attach the docker images to a specific version, not to latest.


After searching for commits of the official httpd image, I found a solution. (maybe this question / answer may help others)

, , LoadModule mpm_event_module modules/mod_mpm_event.so httpd.conf LoadModule.

( № 17166574)

, /usr/local/apache2/conf/httpd.conf MPM, .
.

httpd.conf ( svinther):

LoadModule mpm_event_module modules/mod_mpm_event.so
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so

, , http.conf, sed.

+54

httpd: 2.4 , conf/httpd.conf

LoadModule mpm_event_module modules/mod_mpm_event.so
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
#LoadModule mpm_worker_module modules/mod_mpm_worker.so

: httpd, , conf sed,

+7

, . , , - , , , Dockerfile :

FROM httpd:latest

latest , Apache.

. . .

-

FROM apache:2.4.0

. , .

httpd.conf, , :latest Dockerfile.

+1

Source: https://habr.com/ru/post/1692925/


All Articles