I'm using Apache inside a Docker container, and want to attach the process to the container (preventing forking). However, all the documentation says to run using apachectl, which immediately exits and runs apache under the hood. Is there a clean way to run apache directly?
I've tried the following, but it fails:
$ source /etc/apache2/envvars
$ /usr/sbin/apache2 -f /etc/apache2/sites-available/rails.conf
AH00534: apache2: Configuration error: No MPM loaded.
You don't need apachectl. You do need to include apache2.conf or some alternative.
If you want to run it in the foreground