Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php:7.0-apache: AH00534: apache2: Configuration error: No MPM loaded #392

Closed
tagarwal opened this issue Mar 16, 2017 · 13 comments
Closed

php:7.0-apache: AH00534: apache2: Configuration error: No MPM loaded #392

tagarwal opened this issue Mar 16, 2017 · 13 comments

Comments

@tagarwal
Copy link

While using php:7.0-apache image it fails with the error
AH00534: apache2: Configuration error: No MPM loaded

This is on a Oracle 7 linux box
Linux minion-wallaby.localdomain 4.1.12-61.1.28.el7uek.x86_64 #2 SMP Thu Feb 23 19:55:12 PST 2017 x86_64 x86_64 x86_64 GNU/Linux

Building the docker file locally yielded this
Sending build context to Docker daemon 28.16 kB
Step 1/30 : FROM debian:jessie
jessie: Pulling from library/debian
693502eb7dfb: Already exists
Digest: sha256:52af198afd8c264f1035206ca66a5c48e602afb32dc912ebf9e9478134601ec4
Status: Downloaded newer image for debian:jessie
---> 978d85d02b87
Step 2/30 : ENV PHPIZE_DEPS autoconf file g++ gcc libc-dev make pkg-config re2c
---> Running in f9f944c4fac7
---> 124acd00ca1e
Removing intermediate container f9f944c4fac7
Step 3/30 : RUN apt-get update && apt-get install -y $PHPIZE_DEPS ca-certificates curl libedit2 libsqlite3-0 libxml2 xz-utils --no-install-recommends && rm -r /var/lib/apt/lists/*
---> Running in 5cb29c263620
Get:1 http://security.debian.org jessie/updates InRelease [63.1 kB]
Ign http://deb.debian.org jessie InRelease
Get:2 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:3 http://security.debian.org jessie/updates/main amd64 Packages [448 kB]
Get:4 http://deb.debian.org jessie Release.gpg [2373 B]
Get:5 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:6 http://deb.debian.org jessie Release [148 kB]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Fetched 9874 kB in 3s (2969 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
binutils cpp cpp-4.9 g++-4.9 gcc-4.9 libasan1 libatomic1 libbsd0
libc-dev-bin libcilkrts5 libcloog-isl4 libcurl3 libffi6 libgcc-4.9-dev
libgdbm3 libglib2.0-0 libgmp10 libgnutls-deb0-28 libgomp1 libgssapi-krb5-2
libhogweed2 libidn11 libisl10 libitm1 libk5crypto3 libkeyutils1 libkrb5-3
libkrb5support0 libldap-2.4-2 liblsan0 libmagic1 libmpc3 libmpfr4 libnettle4
libp11-kit0 libquadmath0 librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2
libssh2-1 libssl1.0.0 libstdc++-4.9-dev libtasn1-6 libtsan0 libubsan0
linux-libc-dev m4 openssl perl perl-modules
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool gettext binutils-doc
cpp-doc gcc-4.9-locales g++-multilib g++-4.9-multilib gcc-4.9-doc
libstdc++6-4.9-dbg gcc-multilib manpages-dev flex bison gdb gcc-doc
gcc-4.9-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg
libquadmath0-dbg glibc-doc gnutls-bin krb5-doc krb5-user libstdc++-4.9-doc
make-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
libb-lint-perl libcpanplus-dist-build-perl libcpanplus-perl
libfile-checktree-perl liblog-message-simple-perl liblog-message-perl
libobject-accessor-perl
Recommended packages:
automake automaken libglib2.0-data shared-mime-info xdg-user-dirs
krb5-locales libsasl2-modules xml-core rename libarchive-extract-perl
libmodule-pluggable-perl libpod-latex-perl libterm-ui-perl
libtext-soundex-perl libcgi-pm-perl libmodule-build-perl
libpackage-constants-perl
The following NEW packages will be installed:
autoconf binutils ca-certificates cpp cpp-4.9 curl file g++ g++-4.9 gcc
gcc-4.9 libasan1 libatomic1 libbsd0 libc-dev-bin libc6-dev libcilkrts5
libcloog-isl4 libcurl3 libedit2 libffi6 libgcc-4.9-dev libgdbm3 libglib2.0-0
libgmp10 libgnutls-deb0-28 libgomp1 libgssapi-krb5-2 libhogweed2 libidn11
libisl10 libitm1 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0
libldap-2.4-2 liblsan0 libmagic1 libmpc3 libmpfr4 libnettle4 libp11-kit0
libquadmath0 librtmp1 libsasl2-2 libsasl2-modules-db libsigsegv2
libsqlite3-0 libssh2-1 libssl1.0.0 libstdc++-4.9-dev libtasn1-6 libtsan0
libubsan0 libxml2 linux-libc-dev m4 make openssl perl perl-modules
pkg-config re2c xz-utils
0 upgraded, 65 newly installed, 0 to remove and 1 not upgraded.
Need to get 59.7 MB of archives.
After this operation, 196 MB of additional disk space will be used.
Get:1 http://security.debian.org/ jessie/updates/main libssl1.0.0 amd64 1.0.1t-1+deb8u6 [1047 kB]
Get:2 http://security.debian.org/ jessie/updates/main openssl amd64 1.0.1t-1+deb8u6 [665 kB]
Get:3 http://security.debian.org/ jessie/updates/main linux-libc-dev amd64 3.16.39-1+deb8u2 [1046 kB]
Get:4 http://deb.debian.org/debian/ jessie/main libgdbm3 amd64 1.8.3-13.1 [30.0 kB]
Get:5 http://deb.debian.org/debian/ jessie/main libbsd0 amd64 0.7.0-2 [67.9 kB]
Get:6 http://deb.debian.org/debian/ jessie/main libedit2 amd64 3.1-20140620-2 [85.1 kB]
Get:7 http://deb.debian.org/debian/ jessie/main libgmp10 amd64 2:6.0.0+dfsg-6 [253 kB]
Get:8 http://deb.debian.org/debian/ jessie/main libnettle4 amd64 2.7.1-5+deb8u2 [176 kB]
Get:9 http://deb.debian.org/debian/ jessie/main libhogweed2 amd64 2.7.1-5+deb8u2 [125 kB]
Get:10 http://deb.debian.org/debian/ jessie/main libffi6 amd64 3.1-2+b2 [20.1 kB]
Get:11 http://deb.debian.org/debian/ jessie/main libp11-kit0 amd64 0.20.7-1 [81.2 kB]
Get:12 http://deb.debian.org/debian/ jessie/main libtasn1-6 amd64 4.2-3+deb8u2 [49.0 kB]
Get:13 http://deb.debian.org/debian/ jessie/main libgnutls-deb0-28 amd64 3.3.8-6+deb8u4 [695 kB]
Get:14 http://deb.debian.org/debian/ jessie/main libkeyutils1 amd64 1.5.9-5+b1 [12.0 kB]
Get:15 http://deb.debian.org/debian/ jessie/main libkrb5support0 amd64 1.12.1+dfsg-19+deb8u2 [59.1 kB]
Get:16 http://deb.debian.org/debian/ jessie/main libk5crypto3 amd64 1.12.1+dfsg-19+deb8u2 [115 kB]
Get:17 http://deb.debian.org/debian/ jessie/main libkrb5-3 amd64 1.12.1+dfsg-19+deb8u2 [303 kB]
Get:18 http://deb.debian.org/debian/ jessie/main libgssapi-krb5-2 amd64 1.12.1+dfsg-19+deb8u2 [152 kB]
Get:19 http://deb.debian.org/debian/ jessie/main libidn11 amd64 1.29-1+deb8u2 [136 kB]
Get:20 http://deb.debian.org/debian/ jessie/main libsasl2-modules-db amd64 2.1.26.dfsg1-13+deb8u1 [67.1 kB]
Get:21 http://deb.debian.org/debian/ jessie/main libsasl2-2 amd64 2.1.26.dfsg1-13+deb8u1 [105 kB]
Get:22 http://deb.debian.org/debian/ jessie/main libldap-2.4-2 amd64 2.4.40+dfsg-1+deb8u2 [218 kB]
Get:23 http://deb.debian.org/debian/ jessie/main libmagic1 amd64 1:5.22+15-2+deb8u3 [250 kB]
Get:24 http://deb.debian.org/debian/ jessie/main libsqlite3-0 amd64 3.8.7.1-1+deb8u2 [438 kB]
Get:25 http://deb.debian.org/debian/ jessie/main libxml2 amd64 2.9.1+dfsg1-5+deb8u4 [802 kB]
Get:26 http://deb.debian.org/debian/ jessie/main perl-modules all 5.20.2-3+deb8u6 [2547 kB]
Get:27 http://deb.debian.org/debian/ jessie/main perl amd64 5.20.2-3+deb8u6 [2637 kB]
Get:28 http://deb.debian.org/debian/ jessie/main libasan1 amd64 4.9.2-10 [195 kB]
Get:29 http://deb.debian.org/debian/ jessie/main libatomic1 amd64 4.9.2-10 [8992 B]
Get:30 http://deb.debian.org/debian/ jessie/main libcilkrts5 amd64 4.9.2-10 [40.1 kB]
Get:31 http://deb.debian.org/debian/ jessie/main libisl10 amd64 0.12.2-2 [440 kB]
Get:32 http://deb.debian.org/debian/ jessie/main libcloog-isl4 amd64 0.18.2-1+b2 [61.8 kB]
Get:33 http://deb.debian.org/debian/ jessie/main librtmp1 amd64 2.4+20150115.gita107cef-1 [59.8 kB]
Get:34 http://deb.debian.org/debian/ jessie/main libssh2-1 amd64 1.4.3-4.1+deb8u1 [125 kB]
Get:35 http://deb.debian.org/debian/ jessie/main libcurl3 amd64 7.38.0-4+deb8u5 [259 kB]
Get:36 http://deb.debian.org/debian/ jessie/main libglib2.0-0 amd64 2.42.1-1+b1 [2401 kB]
Get:37 http://deb.debian.org/debian/ jessie/main libgomp1 amd64 4.9.2-10 [37.8 kB]
Get:38 http://deb.debian.org/debian/ jessie/main libitm1 amd64 4.9.2-10 [29.2 kB]
Get:39 http://deb.debian.org/debian/ jessie/main liblsan0 amd64 4.9.2-10 [92.8 kB]
Get:40 http://deb.debian.org/debian/ jessie/main libmpfr4 amd64 3.1.2-2 [527 kB]
Get:41 http://deb.debian.org/debian/ jessie/main libquadmath0 amd64 4.9.2-10 [129 kB]
Get:42 http://deb.debian.org/debian/ jessie/main libsigsegv2 amd64 2.10-4+b1 [29.2 kB]
Get:43 http://deb.debian.org/debian/ jessie/main libtsan0 amd64 4.9.2-10 [212 kB]
Get:44 http://deb.debian.org/debian/ jessie/main libubsan0 amd64 4.9.2-10 [82.4 kB]
Get:45 http://deb.debian.org/debian/ jessie/main libmpc3 amd64 1.0.2-1 [39.3 kB]
Get:46 http://deb.debian.org/debian/ jessie/main file amd64 1:5.22+15-2+deb8u3 [60.4 kB]
Get:47 http://deb.debian.org/debian/ jessie/main m4 amd64 1.4.17-4 [254 kB]
Get:48 http://deb.debian.org/debian/ jessie/main xz-utils amd64 5.1.1alpha+20120614-2+b3 [221 kB]
Get:49 http://deb.debian.org/debian/ jessie/main autoconf all 2.69-8 [340 kB]
Get:50 http://deb.debian.org/debian/ jessie/main binutils amd64 2.25-5 [3516 kB]
Get:51 http://deb.debian.org/debian/ jessie/main ca-certificates all 20141019+deb8u2 [207 kB]
Get:52 http://deb.debian.org/debian/ jessie/main cpp-4.9 amd64 4.9.2-10 [5169 kB]
Get:53 http://deb.debian.org/debian/ jessie/main cpp amd64 4:4.9.2-2 [17.3 kB]
Get:54 http://deb.debian.org/debian/ jessie/main curl amd64 7.38.0-4+deb8u5 [200 kB]
Get:55 http://deb.debian.org/debian/ jessie/main libgcc-4.9-dev amd64 4.9.2-10 [2066 kB]
Get:56 http://deb.debian.org/debian/ jessie/main gcc-4.9 amd64 4.9.2-10 [5352 kB]
Get:57 http://deb.debian.org/debian/ jessie/main gcc amd64 4:4.9.2-2 [5136 B]
Get:58 http://deb.debian.org/debian/ jessie/main libc-dev-bin amd64 2.19-18+deb8u7 [238 kB]
Get:59 http://deb.debian.org/debian/ jessie/main libc6-dev amd64 2.19-18+deb8u7 [2002 kB]
Get:60 http://deb.debian.org/debian/ jessie/main libstdc++-4.9-dev amd64 4.9.2-10 [1121 kB]
Get:61 http://deb.debian.org/debian/ jessie/main g++-4.9 amd64 4.9.2-10 [21.4 MB]
Get:62 http://deb.debian.org/debian/ jessie/main g++ amd64 4:4.9.2-2 [1530 B]
Get:63 http://deb.debian.org/debian/ jessie/main make amd64 4.0-8.1 [349 kB]
Get:64 http://deb.debian.org/debian/ jessie/main pkg-config amd64 0.28-1 [57.5 kB]
Get:65 http://deb.debian.org/debian/ jessie/main re2c amd64 0.13.5-1 [221 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 59.7 MB in 4s (12.7 MB/s)
Selecting previously unselected package libgdbm3:amd64.
(Reading database ... 7559 files and directories currently installed.)
Preparing to unpack .../libgdbm3_1.8.3-13.1_amd64.deb ...
Unpacking libgdbm3:amd64 (1.8.3-13.1) ...
Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.1t-1+deb8u6_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.1t-1+deb8u6) ...
Selecting previously unselected package libbsd0:amd64.
Preparing to unpack .../libbsd0_0.7.0-2_amd64.deb ...
Unpacking libbsd0:amd64 (0.7.0-2) ...
Selecting previously unselected package libedit2:amd64.
Preparing to unpack .../libedit2_3.1-20140620-2_amd64.deb ...
Unpacking libedit2:amd64 (3.1-20140620-2) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a6.0.0+dfsg-6_amd64.deb ...
Unpacking libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Selecting previously unselected package libnettle4:amd64.
Preparing to unpack .../libnettle4_2.7.1-5+deb8u2_amd64.deb ...
Unpacking libnettle4:amd64 (2.7.1-5+deb8u2) ...
Selecting previously unselected package libhogweed2:amd64.
Preparing to unpack .../libhogweed2_2.7.1-5+deb8u2_amd64.deb ...
Unpacking libhogweed2:amd64 (2.7.1-5+deb8u2) ...
Selecting previously unselected package libffi6:amd64.
Preparing to unpack .../libffi6_3.1-2+b2_amd64.deb ...
Unpacking libffi6:amd64 (3.1-2+b2) ...
Selecting previously unselected package libp11-kit0:amd64.
Preparing to unpack .../libp11-kit0_0.20.7-1_amd64.deb ...
Unpacking libp11-kit0:amd64 (0.20.7-1) ...
Selecting previously unselected package libtasn1-6:amd64.
Preparing to unpack .../libtasn1-6_4.2-3+deb8u2_amd64.deb ...
Unpacking libtasn1-6:amd64 (4.2-3+deb8u2) ...
Selecting previously unselected package libgnutls-deb0-28:amd64.
Preparing to unpack .../libgnutls-deb0-28_3.3.8-6+deb8u4_amd64.deb ...
Unpacking libgnutls-deb0-28:amd64 (3.3.8-6+deb8u4) ...
Selecting previously unselected package libkeyutils1:amd64.
Preparing to unpack .../libkeyutils1_1.5.9-5+b1_amd64.deb ...
Unpacking libkeyutils1:amd64 (1.5.9-5+b1) ...
Selecting previously unselected package libkrb5support0:amd64.
Preparing to unpack .../libkrb5support0_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libk5crypto3:amd64.
Preparing to unpack .../libk5crypto3_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libkrb5-3:amd64.
Preparing to unpack .../libkrb5-3_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libgssapi-krb5-2:amd64.
Preparing to unpack .../libgssapi-krb5-2_1.12.1+dfsg-19+deb8u2_amd64.deb ...
Unpacking libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u2) ...
Selecting previously unselected package libidn11:amd64.
Preparing to unpack .../libidn11_1.29-1+deb8u2_amd64.deb ...
Unpacking libidn11:amd64 (1.29-1+deb8u2) ...
Selecting previously unselected package libsasl2-modules-db:amd64.
Preparing to unpack .../libsasl2-modules-db_2.1.26.dfsg1-13+deb8u1_amd64.deb ...
Unpacking libsasl2-modules-db:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Selecting previously unselected package libsasl2-2:amd64.
Preparing to unpack .../libsasl2-2_2.1.26.dfsg1-13+deb8u1_amd64.deb ...
Unpacking libsasl2-2:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Selecting previously unselected package libldap-2.4-2:amd64.
Preparing to unpack .../libldap-2.4-2_2.4.40+dfsg-1+deb8u2_amd64.deb ...
Unpacking libldap-2.4-2:amd64 (2.4.40+dfsg-1+deb8u2) ...
Selecting previously unselected package libmagic1:amd64.
Preparing to unpack .../libmagic1_1%3a5.22+15-2+deb8u3_amd64.deb ...
Unpacking libmagic1:amd64 (1:5.22+15-2+deb8u3) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../libsqlite3-0_3.8.7.1-1+deb8u2_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.8.7.1-1+deb8u2) ...
Selecting previously unselected package libxml2:amd64.
Preparing to unpack .../libxml2_2.9.1+dfsg1-5+deb8u4_amd64.deb ...
Unpacking libxml2:amd64 (2.9.1+dfsg1-5+deb8u4) ...
Selecting previously unselected package perl-modules.
Preparing to unpack .../perl-modules_5.20.2-3+deb8u6_all.deb ...
Unpacking perl-modules (5.20.2-3+deb8u6) ...
Selecting previously unselected package perl.
Preparing to unpack .../perl_5.20.2-3+deb8u6_amd64.deb ...
Unpacking perl (5.20.2-3+deb8u6) ...
Selecting previously unselected package libasan1:amd64.
Preparing to unpack .../libasan1_4.9.2-10_amd64.deb ...
Unpacking libasan1:amd64 (4.9.2-10) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_4.9.2-10_amd64.deb ...
Unpacking libatomic1:amd64 (4.9.2-10) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../libcilkrts5_4.9.2-10_amd64.deb ...
Unpacking libcilkrts5:amd64 (4.9.2-10) ...
Selecting previously unselected package libisl10:amd64.
Preparing to unpack .../libisl10_0.12.2-2_amd64.deb ...
Unpacking libisl10:amd64 (0.12.2-2) ...
Selecting previously unselected package libcloog-isl4:amd64.
Preparing to unpack .../libcloog-isl4_0.18.2-1+b2_amd64.deb ...
Unpacking libcloog-isl4:amd64 (0.18.2-1+b2) ...
Selecting previously unselected package librtmp1:amd64.
Preparing to unpack .../librtmp1_2.4+20150115.gita107cef-1_amd64.deb ...
Unpacking librtmp1:amd64 (2.4+20150115.gita107cef-1) ...
Selecting previously unselected package libssh2-1:amd64.
Preparing to unpack .../libssh2-1_1.4.3-4.1+deb8u1_amd64.deb ...
Unpacking libssh2-1:amd64 (1.4.3-4.1+deb8u1) ...
Selecting previously unselected package libcurl3:amd64.
Preparing to unpack .../libcurl3_7.38.0-4+deb8u5_amd64.deb ...
Unpacking libcurl3:amd64 (7.38.0-4+deb8u5) ...
Selecting previously unselected package libglib2.0-0:amd64.
Preparing to unpack .../libglib2.0-0_2.42.1-1+b1_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.42.1-1+b1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_4.9.2-10_amd64.deb ...
Unpacking libgomp1:amd64 (4.9.2-10) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_4.9.2-10_amd64.deb ...
Unpacking libitm1:amd64 (4.9.2-10) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../liblsan0_4.9.2-10_amd64.deb ...
Unpacking liblsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.2-2_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.2-2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_4.9.2-10_amd64.deb ...
Unpacking libquadmath0:amd64 (4.9.2-10) ...
Selecting previously unselected package libsigsegv2:amd64.
Preparing to unpack .../libsigsegv2_2.10-4+b1_amd64.deb ...
Unpacking libsigsegv2:amd64 (2.10-4+b1) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_4.9.2-10_amd64.deb ...
Unpacking libtsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../libubsan0_4.9.2-10_amd64.deb ...
Unpacking libubsan0:amd64 (4.9.2-10) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.2-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.2-1) ...
Selecting previously unselected package file.
Preparing to unpack .../file_1%3a5.22+15-2+deb8u3_amd64.deb ...
Unpacking file (1:5.22+15-2+deb8u3) ...
Selecting previously unselected package m4.
Preparing to unpack .../archives/m4_1.4.17-4_amd64.deb ...
Unpacking m4 (1.4.17-4) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../xz-utils_5.1.1alpha+20120614-2+b3_amd64.deb ...
Unpacking xz-utils (5.1.1alpha+20120614-2+b3) ...
Selecting previously unselected package autoconf.
Preparing to unpack .../autoconf_2.69-8_all.deb ...
Unpacking autoconf (2.69-8) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.25-5_amd64.deb ...
Unpacking binutils (2.25-5) ...
Selecting previously unselected package openssl.
Preparing to unpack .../openssl_1.0.1t-1+deb8u6_amd64.deb ...
Unpacking openssl (1.0.1t-1+deb8u6) ...
Selecting previously unselected package ca-certificates.
Preparing to unpack .../ca-certificates_20141019+deb8u2_all.deb ...
Unpacking ca-certificates (20141019+deb8u2) ...
Selecting previously unselected package cpp-4.9.
Preparing to unpack .../cpp-4.9_4.9.2-10_amd64.deb ...
Unpacking cpp-4.9 (4.9.2-10) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a4.9.2-2_amd64.deb ...
Unpacking cpp (4:4.9.2-2) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.38.0-4+deb8u5_amd64.deb ...
Unpacking curl (7.38.0-4+deb8u5) ...
Selecting previously unselected package libgcc-4.9-dev:amd64.
Preparing to unpack .../libgcc-4.9-dev_4.9.2-10_amd64.deb ...
Unpacking libgcc-4.9-dev:amd64 (4.9.2-10) ...
Selecting previously unselected package gcc-4.9.
Preparing to unpack .../gcc-4.9_4.9.2-10_amd64.deb ...
Unpacking gcc-4.9 (4.9.2-10) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a4.9.2-2_amd64.deb ...
Unpacking gcc (4:4.9.2-2) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.19-18+deb8u7_amd64.deb ...
Unpacking libc-dev-bin (2.19-18+deb8u7) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_3.16.39-1+deb8u2_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.16.39-1+deb8u2) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.19-18+deb8u7_amd64.deb ...
Unpacking libc6-dev:amd64 (2.19-18+deb8u7) ...
Selecting previously unselected package libstdc++-4.9-dev:amd64.
Preparing to unpack .../libstdc++-4.9-dev_4.9.2-10_amd64.deb ...
Unpacking libstdc++-4.9-dev:amd64 (4.9.2-10) ...
Selecting previously unselected package g++-4.9.
Preparing to unpack .../g++-4.9_4.9.2-10_amd64.deb ...
Unpacking g++-4.9 (4.9.2-10) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a4.9.2-2_amd64.deb ...
Unpacking g++ (4:4.9.2-2) ...
Selecting previously unselected package make.
Preparing to unpack .../make_4.0-8.1_amd64.deb ...
Unpacking make (4.0-8.1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../pkg-config_0.28-1_amd64.deb ...
Unpacking pkg-config (0.28-1) ...
Selecting previously unselected package re2c.
Preparing to unpack .../re2c_0.13.5-1_amd64.deb ...
Unpacking re2c (0.13.5-1) ...
Setting up libgdbm3:amd64 (1.8.3-13.1) ...
Setting up libssl1.0.0:amd64 (1.0.1t-1+deb8u6) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Setting up libbsd0:amd64 (0.7.0-2) ...
Setting up libedit2:amd64 (3.1-20140620-2) ...
Setting up libgmp10:amd64 (2:6.0.0+dfsg-6) ...
Setting up libnettle4:amd64 (2.7.1-5+deb8u2) ...
Setting up libhogweed2:amd64 (2.7.1-5+deb8u2) ...
Setting up libffi6:amd64 (3.1-2+b2) ...
Setting up libp11-kit0:amd64 (0.20.7-1) ...
Setting up libtasn1-6:amd64 (4.2-3+deb8u2) ...
Setting up libgnutls-deb0-28:amd64 (3.3.8-6+deb8u4) ...
Setting up libkeyutils1:amd64 (1.5.9-5+b1) ...
Setting up libkrb5support0:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libk5crypto3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libkrb5-3:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libgssapi-krb5-2:amd64 (1.12.1+dfsg-19+deb8u2) ...
Setting up libidn11:amd64 (1.29-1+deb8u2) ...
Setting up libsasl2-modules-db:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Setting up libsasl2-2:amd64 (2.1.26.dfsg1-13+deb8u1) ...
Setting up libldap-2.4-2:amd64 (2.4.40+dfsg-1+deb8u2) ...
Setting up libmagic1:amd64 (1:5.22+15-2+deb8u3) ...
Setting up libsqlite3-0:amd64 (3.8.7.1-1+deb8u2) ...
Setting up libxml2:amd64 (2.9.1+dfsg1-5+deb8u4) ...
Setting up perl-modules (5.20.2-3+deb8u6) ...
Setting up perl (5.20.2-3+deb8u6) ...
update-alternatives: using /usr/bin/prename to provide /usr/bin/rename (rename) in auto mode
Setting up libasan1:amd64 (4.9.2-10) ...
Setting up libatomic1:amd64 (4.9.2-10) ...
Setting up libcilkrts5:amd64 (4.9.2-10) ...
Setting up libisl10:amd64 (0.12.2-2) ...
Setting up libcloog-isl4:amd64 (0.18.2-1+b2) ...
Setting up librtmp1:amd64 (2.4+20150115.gita107cef-1) ...
Setting up libssh2-1:amd64 (1.4.3-4.1+deb8u1) ...
Setting up libcurl3:amd64 (7.38.0-4+deb8u5) ...
Setting up libglib2.0-0:amd64 (2.42.1-1+b1) ...
No schema files found: doing nothing.
Setting up libgomp1:amd64 (4.9.2-10) ...
Setting up libitm1:amd64 (4.9.2-10) ...
Setting up liblsan0:amd64 (4.9.2-10) ...
Setting up libmpfr4:amd64 (3.1.2-2) ...
Setting up libquadmath0:amd64 (4.9.2-10) ...
Setting up libsigsegv2:amd64 (2.10-4+b1) ...
Setting up libtsan0:amd64 (4.9.2-10) ...
Setting up libubsan0:amd64 (4.9.2-10) ...
Setting up libmpc3:amd64 (1.0.2-1) ...
Setting up file (1:5.22+15-2+deb8u3) ...
Setting up m4 (1.4.17-4) ...
Setting up xz-utils (5.1.1alpha+20120614-2+b3) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto mode
Setting up autoconf (2.69-8) ...
Setting up binutils (2.25-5) ...
Setting up openssl (1.0.1t-1+deb8u6) ...
Setting up ca-certificates (20141019+deb8u2) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
/usr/sbin/update-ca-certificates: [--verbose] [--fresh]
Setting up cpp-4.9 (4.9.2-10) ...
Setting up cpp (4:4.9.2-2) ...
Setting up curl (7.38.0-4+deb8u5) ...
Setting up libgcc-4.9-dev:amd64 (4.9.2-10) ...
Setting up gcc-4.9 (4.9.2-10) ...
Setting up gcc (4:4.9.2-2) ...
Setting up libc-dev-bin (2.19-18+deb8u7) ...
Setting up linux-libc-dev:amd64 (3.16.39-1+deb8u2) ...
Setting up libc6-dev:amd64 (2.19-18+deb8u7) ...
Setting up libstdc++-4.9-dev:amd64 (4.9.2-10) ...
Setting up g++-4.9 (4.9.2-10) ...
Setting up g++ (4:4.9.2-2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up make (4.0-8.1) ...
Setting up pkg-config (0.28-1) ...
Setting up re2c (0.13.5-1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for ca-certificates (20141019+deb8u2) ...
Updating certificates in /etc/ssl/certs... 174 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
---> db0c37fda83c
Removing intermediate container 5cb29c263620
Step 4/30 : ENV PHP_INI_DIR /usr/local/etc/php
---> Running in b3e75a6c13d9
---> 340414301d7b
Removing intermediate container b3e75a6c13d9
Step 5/30 : RUN mkdir -p $PHP_INI_DIR/conf.d
---> Running in 339983c81b23
---> 2171368523a1
Removing intermediate container 339983c81b23
Step 6/30 : RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
---> Running in 9d556b07567c
Ign http://deb.debian.org jessie InRelease
Get:1 http://deb.debian.org jessie-updates InRelease [145 kB]
Get:2 http://security.debian.org jessie/updates InRelease [63.1 kB]
Get:3 http://deb.debian.org jessie Release.gpg [2373 B]
Get:4 http://deb.debian.org jessie Release [148 kB]
Get:5 http://security.debian.org jessie/updates/main amd64 Packages [448 kB]
Get:6 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Get:7 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Fetched 9874 kB in 1s (5073 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
apache2 apache2-data apache2-utils libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libexpat1 liblua5.1-0 mime-support
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom
Recommended packages:
ssl-cert
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-utils apache2.2-common libapr1
libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libexpat1 liblua5.1-0
mime-support
0 upgraded, 12 newly installed, 0 to remove and 1 not upgraded.
Need to get 2171 kB of archives.
After this operation, 7241 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian/ jessie/main mime-support all 3.58 [36.0 kB]
Get:2 http://security.debian.org/ jessie/updates/main apache2-bin amd64 2.4.10-10+deb8u8 [1038 kB]
Get:3 http://deb.debian.org/debian/ jessie/main libapr1 amd64 1.5.1-3 [95.3 kB]
Get:4 http://deb.debian.org/debian/ jessie/main libexpat1 amd64 2.1.0-6+deb8u3 [80.0 kB]
Get:5 http://deb.debian.org/debian/ jessie/main libaprutil1 amd64 1.5.4-1 [86.2 kB]
Get:6 http://deb.debian.org/debian/ jessie/main libaprutil1-dbd-sqlite3 amd64 1.5.4-1 [19.1 kB]
Get:7 http://deb.debian.org/debian/ jessie/main libaprutil1-ldap amd64 1.5.4-1 [17.2 kB]
Get:8 http://deb.debian.org/debian/ jessie/main liblua5.1-0 amd64 5.1.5-7.1 [108 kB]
Get:9 http://security.debian.org/ jessie/updates/main apache2-utils amd64 2.4.10-10+deb8u8 [196 kB]
Get:10 http://security.debian.org/ jessie/updates/main apache2-data all 2.4.10-10+deb8u8 [162 kB]
Get:11 http://security.debian.org/ jessie/updates/main apache2 amd64 2.4.10-10+deb8u8 [208 kB]
Get:12 http://security.debian.org/ jessie/updates/main apache2.2-common amd64 2.4.10-10+deb8u8 [125 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2171 kB in 1s (2017 kB/s)
Selecting previously unselected package mime-support.
(Reading database ... 12250 files and directories currently installed.)
Preparing to unpack .../mime-support_3.58_all.deb ...
Unpacking mime-support (3.58) ...
Selecting previously unselected package libapr1:amd64.
Preparing to unpack .../libapr1_1.5.1-3_amd64.deb ...
Unpacking libapr1:amd64 (1.5.1-3) ...
Selecting previously unselected package libexpat1:amd64.
Preparing to unpack .../libexpat1_2.1.0-6+deb8u3_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-6+deb8u3) ...
Selecting previously unselected package libaprutil1:amd64.
Preparing to unpack .../libaprutil1_1.5.4-1_amd64.deb ...
Unpacking libaprutil1:amd64 (1.5.4-1) ...
Selecting previously unselected package libaprutil1-dbd-sqlite3:amd64.
Preparing to unpack .../libaprutil1-dbd-sqlite3_1.5.4-1_amd64.deb ...
Unpacking libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ...
Selecting previously unselected package libaprutil1-ldap:amd64.
Preparing to unpack .../libaprutil1-ldap_1.5.4-1_amd64.deb ...
Unpacking libaprutil1-ldap:amd64 (1.5.4-1) ...
Selecting previously unselected package liblua5.1-0:amd64.
Preparing to unpack .../liblua5.1-0_5.1.5-7.1_amd64.deb ...
Unpacking liblua5.1-0:amd64 (5.1.5-7.1) ...
Selecting previously unselected package apache2-bin.
Preparing to unpack .../apache2-bin_2.4.10-10+deb8u8_amd64.deb ...
Unpacking apache2-bin (2.4.10-10+deb8u8) ...
Selecting previously unselected package apache2-utils.
Preparing to unpack .../apache2-utils_2.4.10-10+deb8u8_amd64.deb ...
Unpacking apache2-utils (2.4.10-10+deb8u8) ...
Selecting previously unselected package apache2-data.
Preparing to unpack .../apache2-data_2.4.10-10+deb8u8_all.deb ...
Unpacking apache2-data (2.4.10-10+deb8u8) ...
Selecting previously unselected package apache2.
Preparing to unpack .../apache2_2.4.10-10+deb8u8_amd64.deb ...
Unpacking apache2 (2.4.10-10+deb8u8) ...
Selecting previously unselected package apache2.2-common.
Preparing to unpack .../apache2.2-common_2.4.10-10+deb8u8_amd64.deb ...
Unpacking apache2.2-common (2.4.10-10+deb8u8) ...
Processing triggers for systemd (215-17+deb8u6) ...
Setting up mime-support (3.58) ...
Setting up libapr1:amd64 (1.5.1-3) ...
Setting up libexpat1:amd64 (2.1.0-6+deb8u3) ...
Setting up libaprutil1:amd64 (1.5.4-1) ...
Setting up libaprutil1-dbd-sqlite3:amd64 (1.5.4-1) ...
Setting up libaprutil1-ldap:amd64 (1.5.4-1) ...
Setting up liblua5.1-0:amd64 (5.1.5-7.1) ...
Setting up apache2-bin (2.4.10-10+deb8u8) ...
Setting up apache2-utils (2.4.10-10+deb8u8) ...
Setting up apache2-data (2.4.10-10+deb8u8) ...
Setting up apache2 (2.4.10-10+deb8u8) ...
Enabling module mpm_event.
Enabling module authz_core.
Enabling module authz_host.
Enabling module authn_core.
Enabling module auth_basic.
Enabling module access_compat.
Enabling module authn_file.
Enabling module authz_user.
Enabling module alias.
Enabling module dir.
Enabling module autoindex.
Enabling module env.
Enabling module mime.
Enabling module negotiation.
Enabling module setenvif.
Enabling module filter.
Enabling module deflate.
Enabling module status.
Enabling module reqtimeout.
Enabling conf charset.
Enabling conf localized-error-pages.
Enabling conf other-vhosts-access-log.
Enabling conf security.
Enabling conf serve-cgi-bin.
Enabling site 000-default.
invoke-rc.d: policy-rc.d denied execution of start.
Setting up apache2.2-common (2.4.10-10+deb8u8) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...
Processing triggers for systemd (215-17+deb8u6) ...
---> 2fa70b9a5e59
Removing intermediate container 9d556b07567c
Step 7/30 : ENV APACHE_CONFDIR /etc/apache2
---> Running in ad69ed2d6f24
---> f03a2f48c44b
Removing intermediate container ad69ed2d6f24
Step 8/30 : ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
---> Running in 578d30b4f3ef
---> 1cfb9c572d16
Removing intermediate container 578d30b4f3ef
Step 9/30 : RUN set -ex && sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS" && . "$APACHE_ENVVARS" && for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" /var/www/html ; do rm -rvf "$dir" && mkdir -p "$dir" && chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; done
---> Running in a5ff23275c14

  • sed -ri s/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/ /etc/apache2/envvars
  • . /etc/apache2/envvars
  • unset HOME
  • [ /etc/apache2 != /etc/apache2 ]
  • SUFFIX=
  • : www-data
  • export APACHE_RUN_USER
  • : www-data
  • export APACHE_RUN_GROUP
  • : /var/run/apache2/apache2.pid
  • export APACHE_PID_FILE
  • : /var/run/apache2
  • export APACHE_RUN_DIR
  • : /var/lock/apache2
  • export APACHE_LOCK_DIR
  • : /var/log/apache2
  • export APACHE_LOG_DIR
  • : C
  • export LANG
  • export LANG
  • rm -rvf /var/lock/apache2
  • mkdir -p /var/lock/apache2
  • chown -R www-data:www-data /var/lock/apache2
  • rm -rvf /var/run/apache2
  • mkdir -p /var/run/apache2
  • chown -R www-data:www-data /var/run/apache2
  • rm -rvf /var/log/apache2
    removed '/var/log/apache2/access.log'
    removed '/var/log/apache2/error.log'
    removed '/var/log/apache2/other_vhosts_access.log'
    rm: cannot remove '/var/log/apache2': Directory not empty
  • rm -rvf /var/www/html
    rm: cannot remove '/var/www/html': Directory not empty
    removed '/var/www/html/index.html'
    The command '/bin/sh -c set -ex && sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' "$APACHE_ENVVARS" && . "$APACHE_ENVVARS" && for dir in "$APACHE_LOCK_DIR" "$APACHE_RUN_DIR" "$APACHE_LOG_DIR" /var/www/html ; do rm -rvf "$dir" && mkdir -p "$dir" && chown -R "$APACHE_RUN_USER:$APACHE_RUN_GROUP" "$dir"; done' returned a non-zero code: 1
@kujiy
Copy link

kujiy commented Apr 7, 2017

I've got the same error apache2: Configuration error: No MPM loaded. with php:5-apache image. How did you solve it? @tagarwal

@superhero
Copy link

same here ...

@kujiy
Copy link

kujiy commented Apr 21, 2017

@superhero Hi. In my case, it happened when I reinstalled the docker. It seems docker 17.04 has a bug that it creates wrong /var/lib/docker directory. My solution was this.
rm -rf /var/lib/docker (or mv)
install docker 1.12.3
Run container (This create proper /var/lib/docker)
Upgrade docker to 17.04
Worked!

@superhero
Copy link

@kujiy will pass it along, see if it works.. never the less.. thanks for your feedback :)

@rydente
Copy link

rydente commented Jul 24, 2017

@kujiy I just tried this same approach, it did not work.

I've noticed strange permissions for the disabled mpm module.
When running docker run -it php:apache ls -l /etc/apache2/mods-enabled:

ls: cannot access /etc/apache2/mods-enabled/mpm_event.conf: No such file or directory
ls: cannot access /etc/apache2/mods-enabled/mpm_event.load: No such file or directory
total 0
lrwxrwxrwx 1 root root 36 Jun 21 16:10 access_compat.load -> ../mods-available/access_compat.load
lrwxrwxrwx 1 root root 28 Jun 21 16:10 alias.conf -> ../mods-available/alias.conf
lrwxrwxrwx 1 root root 28 Jun 21 16:10 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 authn_core.load -> ../mods-available/authn_core.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 authz_core.load -> ../mods-available/authz_core.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Jun 21 16:10 autoindex.conf -> ../mods-available/autoindex.conf
lrwxrwxrwx 1 root root 32 Jun 21 16:10 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 30 Jun 21 16:10 deflate.conf -> ../mods-available/deflate.conf
lrwxrwxrwx 1 root root 30 Jun 21 16:10 deflate.load -> ../mods-available/deflate.load
lrwxrwxrwx 1 root root 26 Jun 21 16:10 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Jun 21 16:10 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Jun 21 16:10 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 29 Jun 21 16:10 filter.load -> ../mods-available/filter.load
lrwxrwxrwx 1 root root 27 Jun 21 16:10 mime.conf -> ../mods-available/mime.conf
lrwxrwxrwx 1 root root 27 Jun 21 16:10 mime.load -> ../mods-available/mime.load
?????????? ? ?    ?     ?            ? mpm_event.conf
?????????? ? ?    ?     ?            ? mpm_event.load
lrwxrwxrwx 1 root root 34 Jun 21 16:10 mpm_prefork.conf -> ../mods-available/mpm_prefork.conf
lrwxrwxrwx 1 root root 34 Jun 21 16:10 mpm_prefork.load -> ../mods-available/mpm_prefork.load
lrwxrwxrwx 1 root root 34 Jun 21 16:10 negotiation.conf -> ../mods-available/negotiation.conf
lrwxrwxrwx 1 root root 34 Jun 21 16:10 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 27 Jul 13 17:37 php7.load -> ../mods-available/php7.load
lrwxrwxrwx 1 root root 33 Jun 21 16:10 reqtimeout.conf -> ../mods-available/reqtimeout.conf
lrwxrwxrwx 1 root root 33 Jun 21 16:10 reqtimeout.load -> ../mods-available/reqtimeout.load
lrwxrwxrwx 1 root root 31 Jun 21 16:10 setenvif.conf -> ../mods-available/setenvif.conf
lrwxrwxrwx 1 root root 31 Jun 21 16:10 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Jun 21 16:10 status.conf -> ../mods-available/status.conf
lrwxrwxrwx 1 root root 29 Jun 21 16:10 status.load -> ../mods-available/status.load

When running docker run -it php:apache apache2-foreground, I get:
AH00534: apache2: Configuration error: No MPM loaded..

I'm running this on Arch Linux x86_64. I get the same issue with the 7.1 Apache image.

A short look into this points to a possible SELinux issue. Arch Linux does not enable SELinux by default. Not sure about Oracle Linux, but it looks like it does. Debian also does not, but not sure if the Debian Docker image does.

Maybe some policy has stopped this from working properly?

@rydente
Copy link

rydente commented Aug 9, 2017

Follow-up: I'm running this using the overlay2 storage-driver on a partition using the jfs filesystem. Turns out that's actually the problem: the moment I switched to the devicemapper storage-driver, I no longer have an issue with using the prefork or event Apache MPMs.

@superhero, try that.

@4406arthur
Copy link

@rydente , it works for me.

@superhero
Copy link

superhero commented Aug 30, 2017

@rydente ran into this issue again, and was about to look closer to what you wrote here.. But we solved it simply by not overwriting the apache.conf file upon docker run, solved it for us... worth notice for someone else finding this problem through google :)

@kujiy
Copy link

kujiy commented Oct 18, 2017

I've gotten this error again after upgrading docker-ce to 17.09.0-ce.
I think this error occurs on Cent OS(or Fedora and RHEL) frequently.

I noticed that my docker was working with Storage Driver: Overlay. According to the manual, docker recommends devicemapper on cent os.

I changed docker's storage driver then apache started working properly again.

$ cp -rap /var/lib/docker /var/lib/docker.overlay.backup

$ docker info | grep Driver
Storage Driver: overlay

$ systemctl stop docker

$ cat /etc/docker/daemon.json 
{
  "storage-driver": "devicemapper"
}

$ systemctl start docker         # please be patient docker migrates the images...

$ docker info | grep Driver
Storage Driver: devicemapper

Docker must be used on clouds or at least ubuntu, I think.

@kujiy
Copy link

kujiy commented Nov 6, 2017

Apache -D foreground fails · Issue #88 · kwk/docker-registry-frontend

CentOS 7.2 + xfs + overlay filesystem

This issue will be the reason. I found the way to docker stack deploy on a docker with StorageDriver: overlay when removed working_dir but it doesn't work always.

@yosifkit
Copy link
Member

So it seems this issue is host and filesystem related and not the Docker image, so I'll close it.

Feel free to comment if you feel this was closed in error or if there is something in the image we could do to alleviate the problem.

@LaurentGoderre
Copy link
Member

Sorry to revive this thread but I had this error and found out I was missing this line in my httpd.conf file:

LoadModule mpm_event_module modules/mod_mpm_event.so

@civic9
Copy link

civic9 commented Oct 18, 2020

This problem is caused by xfs with default options under centos 7. Docker on centos7 uses overlay2 storage driver which is recommended (no need to change to device-mapper), but it needs d_type support, which is not default on centos7.
See warning about xfs on: https://docs.docker.com/storage/storagedriver/overlayfs-driver/
A little more info about this issue: https://www.pimwiddershoven.nl/entry/docker-on-centos-7-machine-with-xfs-filesystem-can-cause-trouble-when-d-type-is-not-supported
Sorry to revive this thread but I spent too much time resolving this issue. Hope this helps others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants