php icon indicating copy to clipboard operation
php copied to clipboard

Unable to start apache

Open Scisci75 opened this issue 7 years ago • 2 comments

Hi, I trying to use php7.3-apache image but apache doesn't start. I've this error: AH00534: apache2: Configuration error: No MPM loaded. In my docker file i've only insert FROM php:7.3-apache

Someone can help me please? Thanks Mirko

Scisci75 avatar Apr 02 '19 07:04 Scisci75

Could be SELinux related or a conflict with your host filesystem and the Docker storage driver https://github.com/docker-library/php/issues/392#issuecomment-321267537

wglambert avatar Apr 02 '19 16:04 wglambert

Yep, unable to reproduce:

$ cat Dockerfile
FROM php:7.3-apache
$ docker build --pull .
Sending build context to Docker daemon   12.8kB
Step 1/1 : FROM php:7.3-apache
7.3-apache: Pulling from library/php
Digest: sha256:8139a8e303500158987fe2d526cdd98f5da1d447a04018fb8d4ea4c7f82be096
Status: Image is up to date for php:7.3-apache
 ---> 406c73effb13
Successfully built 406c73effb13

$ docker run -it --rm 406c73effb13
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.27. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.27. Set the 'ServerName' directive globally to suppress this message
[Thu Apr 04 21:45:16.687555 2019] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.25 (Debian) PHP/7.3.3 configured -- resuming normal operations
[Thu Apr 04 21:45:16.687587 2019] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'

I'd suggest trying the Docker Community Forums, the Docker Community Slack, or Stack Overflow for further assistance.

tianon avatar Apr 04 '19 21:04 tianon