Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

MPM not loaded? #45

@icsy7867

Description

@icsy7867

I am having a weird issue on a RHEL 7.4 box. Whenever I try to run a fairly simply docker container, it seems to successfully build except for a warning:

Enabling module rewrite.
find: '/var/lib/apache2/module/enabled_by_maint/mpm_event': No such file or directory
To activate the new configuration, you need to run:
service apache2 restart

The image seems to build anyways and I try to start it. It fails and I get this error:

AH00534: apache2: Configuration error: No MPM loaded.

I tried to load mod_mpm_event.so into the httpd.conf manually, but while building I am told the file doesn't exist.

I have included my dockerfile here. Hoping someone has some ideas! Thanks.

FROM php:7.2-apache

RUN set -x \
	&& apt-get update && apt-get install unzip -y \
        && apt-get install -y libldap2-dev ldap-utils \
        && apt-get install -y git openssh-server \
        && rm -rf /var/lib/apt/lists/* \
        && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
        && docker-php-ext-install ldap \
        && apt-get purge -y --auto-remove libldap2-dev
RUN a2enmod rewrite

#RUN echo "LoadModule mpm_event_module modules/mod_mpm_event.so" >> /usr/local/apache2/conf/httpd.conf

EXPOSE 8080:80

I've also tried php:latest with the same error. Docker version is reporting 1.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions