I am using Amazon linux on AWS EC2. I have changed the mpm from
worker by uncommenting
HTTPD=/usr/sbin/httpd.worker from file
/etc/sysconfig/httpd. Now if I run command
httpd -l i get
prefork as mpm and if i run
apachectl -l i get
worker as mpm.
I am stress testing my application, I was having error for MaxClients reached. When I changed the MaxClients settings for worker mpm there was no difference but after changing it for prefork the system was able handle more requests. So, it looks like that apache is running in
prefork mpm mode.
What I have to do to run my server with