How to Check if Apache is Running Prefork MPM or Worker

You can use the below command to check which MPM is Currently running.

#httpd -l

OR

#apachectl -l

You will see the output similar to the below one

#httpd -l

Compiled in modules:
  core.c
  prefork.c
  http_core.c
  mod_so.c

Here its showing prefork.c in the Compiled in modules list which mean Prefork MPM is running if          its running with worker then it will show worker.c

 

You can use the below command to check if Apache has the Worker MPM

#/usr/sbin/httpd.worker -l

You will see the output similar to the below one if you see worker.c in the list of compiled-in modules, then Apache can run Worker MPM.

 #/usr/sbin/httpd.worker -l
Compiled in modules:
  core.c
  worker.c
  http_core.c
  mod_so.c

 

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *