Skip to content

Apache configuration

hanleybrand edited this page Nov 16, 2012 · 9 revisions

MPM not Pre-fork[1]

"The worker MPM uses multiple child processes with many threads each. Each thread handles one connection at a time. Worker generally is a good choice for high-traffic servers because it has a smaller memory footprint than the prefork MPM." - Switching Apache from Prefork to Worker MPM in RHEL / CentOS 5.x / Fedora 13

RHEL / CentOS 5.x / Fedora 13

Modify /etc/sysconfig/httpd the following line is uncommented:

HTTPD=/usr/sbin/httpd.worker

Apache must be restarted after that, either via

sudo apachectl restart

or

sudo apachectl stop
sudo apachectl start

confirm via $ /usr/sbin/apachectl -V

Server version: Apache/2.2.3

Architecture: 32-bit

Server MPM:     Worker

threaded: yes (fixed thread count)

forked: yes (variable process count)

Server compiled with....

-D APACHE_MPM_DIR="server/mpm/worker"

..etc...


1