docker/httpd: Configuration error: No MPM loaded

前端 未结 5 676
太阳男子
太阳男子 2020-12-13 19:46

I have a docker container based in the httpd official image. From nowhere (after a new build), it started failing with the error:

AH00534: httpd: Configurati         


        
5条回答
  •  無奈伤痛
    2020-12-13 20:04

    Much as the accepted solution works, it is less than ideal. The real reason you are getting this error is most likely the fact that your Dockerfile begins with the following line:

    FROM httpd:latest
    

    That latest part, is you asking for the latest and greatest version of Apache.

    Don't do that. This is your infrastructure. Lock it down to a version number.

    Something like

    FROM apache:2.4.0
    

    This is the real answer. Not doing that risks your own codebase failing when third party software vendors update their code.

    Get the latest version of httpd.conf, and take a note of the version number, then tweak it with your changes, and get that :latest the hell out of your Dockerfile.

提交回复
热议问题