備忘録
Dockerfileでintelイメージで作成するときのおまじない
(Rosetta 2は各自導入しておきましょう)
Dockerfile
FROM --platform=linux/x86_64 ubuntu:22.04
FROM --platform=linux/x86_64 php:8.1-apache-bullseye
Apacheが起動しない
# /usr/sbin/service httpd start
Starting
[Tue Dec 12 23:38:11.970835 2023] [core:emerg] [pid 2410] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex
(95)Operation not supported: could not create accept mutex
AH00015: Unable to open logs
httpd is started.
/etc/apache2/apache2.conf や /usr/local/httpd/conf/httpd.conf などの
confにMutex posixsemを追加する
#M1 MAC時追記
Mutex posixsem