Wednesday, June 8, 2016

How do I tell if apache is running as prefork or worker?



How do I tell if apache is running (or configured to run) as prefork or worker?


Answer



The MPM is configured at compile time. One way to figure it out afterwards is to list compiled in modules. That list will include the chosen MPM. The listing can be accomplished running the apache binary, with the -l flag.



andreas@halleck:~$ apache2 -l
Compiled in modules:

core.c
mod_log_config.c
mod_logio.c
worker.c
http_core.c
mod_so.c
andreas@halleck:~$


Here we find the module worker.c, hence I'm running the worker MPM.



No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...