如何在官方docker php7.x-apache映像中启用mpm_event?

时间:2019-09-29 09:36:21

标签: php apache docker dockerfile

我有一个从镜像“ php:7.2-apache”构建的docker容器。此官方图片默认使用 mpm_prefork 。我想使用 mpm_event 。然后,我执行了以下命令:

a2dismod mpm_prefork

a2enmod mpm_event

service apache2 reload

但是我收到以下错误消息:

[FAIL] Reloading Apache httpd web server: apache2 failed!
[warn] The apache2 configtest failed. Not doing anything. ... (warning).
Output of config test was:
[Sun Sep 29 09:09:44.178313 2019] [php7:crit] [pid 53:tid 139688943793280] Apache is running a threaded MPM, but your PH
P Module is not compiled to be threadsafe.  You need to recompile PHP.
AH00013: Pre-configuration failed
Action 'configtest' failed.

0 个答案:

没有答案