webpwnized/mutillidae

Error on Mac M1 Chip

abruzzi opened this issue · 2 comments

Hi there.

Thanks for making this repo and all the repo to make life easier for others.

However, when I run this on my Mac M1 Chip, all four other containers are running okay. The www, however, crashed with the log below:

2023-02-23 20:54:12 www              | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.18.0.4. Set the 'ServerName' directive globally to suppress this message
2023-02-23 20:54:12 www              | [Thu Feb 23 09:54:12.622911 2023] [core:emerg] [pid 1] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex 
2023-02-23 20:54:12 www              | (95)Operation not supported: could not create accept mutex
2023-02-23 20:54:12 www              | AH00015: Unable to open logs
2023-02-23 21:18:25 www              | AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.19.0.4. Set the 'ServerName' directive globally to suppress this message
2023-02-23 21:18:25 www              | [Thu Feb 23 10:18:25.090711 2023] [core:emerg] [pid 1] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex 
2023-02-23 21:18:25 www              | (95)Operation not supported: could not create accept mutex
2023-02-23 21:18:25 www              | AH00015: Unable to open logs

I tried to amend a few configs in www/Dockerfile but got no luck.

RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
RUN echo 'Mutex posixsem' >> /etc/apache2/conf/httpd.conf

Could you please give me some hints here? Thank you.

I dont own a system with the Apple M1 chip, so I am not able to help. However, I think you are on the right track according to the last answer in this post: https://stackoverflow.com/questions/68365844/docker-apache-in-apple-silicon-m1

Thanks @webpwnized for replying.

I got it fixed by following this step:

  1. updated Dockerfile in www, at line 55:
RUN echo "Mutex posixsem" >> /etc/apache2/apache2.conf
  1. re-build the images by
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose build
  1. launch the whole stack with:
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker-compose up

Thanks again