Wednesday, April 3, 2013

Apache config for Worker MPM vs Prefork MPM

Some installations of Apache will have been compiled to work with either Prefork or Worker MPM, but most by default are compiled only to work with Prefork. Changing to Worker MPM may allow your server to handle much higher traffic, more user sessions, with less RAM use. Your site or server will not scale well if it is running Prefork MPM. Worker is a bit more difficult to set up properly, and has some restrictions regarding functionality of PHP scripts.

To determine which MPM is currently running 
/usr/sbin/apachectl -l
If you see worker.c in the list of loaded modules, your Apache is running Worker MPM.
 If prefork.c, it is running prefork.






No comments: