February 14th, 2013, 08:14 AM
Prefork to worker mode
We have Apache installed on RHEL5.x and these are currently configured to run in prefork mode. The implementation is mainly for Siteminder login page, SAML and policy servers.
There are RedHat servers which hosts a single Apache installation and RedHat servers which hosts multiple Apache installations.
From the information provided in the internet, prefork to worker is done by:
1. Stop Apache
2. Edit /etc/sysconfig/httpd. Uncomment #HTTP=/usr/sbin/httpd.worker
3. Start Apache (/etc/init.d script)
On the Linux servers with single Apache instance running, the above steps has not been successful. After validating through httpd -l / apachectl -l, prefork.c is still displayed
httpd -V / apachectl -V also shows that we are still in prefork mode (-D APACHE_MPM_DIR="server/mpm/prefork")
I've also read that by running /usr/sbin/httpd.worker -l, i can check if Apache can run in worker mode. worker.c is listed when i run this command so this shows we are eligible for worker mode.
Meanwhile, on the Linux servers with multiple Apache instances running, it seems steps 1-3 is not applicable. This is mainly because these Apache instances are not started via the httpd script in /etc/init.d. Even if i source execute /etc/sysconfig/httpd prior to starting Apache, i still see that we are running in prefork mode.
Has anyone successfully updated their Apache to run worker mode? How was this implemented?