Skip to content

Apache mpm_event #353

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

Closed
rosineygp opened this issue Dec 14, 2016 · 5 comments
Closed

Apache mpm_event #353

rosineygp opened this issue Dec 14, 2016 · 5 comments

Comments

@rosineygp
Copy link

How can I use mpm_event with php:7-apache

There is a following line on base Dockerfile

RUN a2dismod mpm_event && a2enmod mpm_prefork

There is a way to replace change it?

note: I commented this line and rebuild image... but apache not worked.

@rydente
Copy link

rydente commented Jul 25, 2017

Right now, #392 prevents you from changing and using that, even in your own Dockerfile. It looks like an SELinux issue, but not completely certain yet.

@rydente
Copy link

rydente commented Jul 31, 2017

@tianon or @yosifkit, would either of you know about SELinux/Docker Security issues preventing someone from running various Apache config commands in the apache tags of this image? I also can't change this setting and I have seen SELinux-like file permissions on these files when switching things over (groups and user permissions read ??? instead of rwx).

@rydente
Copy link

rydente commented Aug 9, 2017

@rosineygp, I mentioned in #392 that this only happens when using overlay2 as my storage driver for Docker on a partition using JFS. Using the devicemapper storage driver, this shouldn't pose a problem.

@tianon
Copy link
Member

tianon commented Dec 22, 2017

Sorry for the delay! I can confirm that this does indeed work on overlay2 (and I don't have SELinux at all -- stock Debian install here):

FROM php:7.2-apache
RUN a2dismod mpm_event && a2enmod mpm_prefork
Sending build context to Docker daemon  2.048kB
Step 1/2 : FROM php:7.2-apache
 ---> c6965aaf628c
Step 2/2 : RUN a2dismod mpm_event && a2enmod mpm_prefork
 ---> Running in db4220d1497b
Module mpm_event already disabled
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Module mpm_prefork already enabled
Removing intermediate container db4220d1497b
 ---> a7639b932f92
Successfully built a7639b932f92

So, I guess the only advice I can possibly give is to either:

  1. build your base elsewhere (such as in Docker's automated builds service)
  2. switch storage drivers
  3. switch distros

Since this isn't an issue with the image, I'm going to close. Sorry!

@tianon tianon closed this as completed Dec 22, 2017
@esteinborn
Copy link

Figured I'd leave a comment here that on RHEL running Kubernetes, I changed the storage-driver to devicemapper from its default of overlay2 and the problem was immediately resolved.

I followed the instructions here: #392 (comment)

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

4 participants