apache 2 MPM.

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
klabaza
Posts: 10
Joined: 2013/11/08 00:22:38

apache 2 MPM.

Post by klabaza » 2013/11/08 00:59:01

Hi.

Guys, reading a little about apache2 MPM modules, we have 2 available in the config file:
prefork
worker
Each one has his stra/wee.

My questions is:

1; How centos/apache decide which one to use if we have both enable?
2; Suppose we decide to focus in 1, is good to disable the other, putting comments at the beggining of each line? do this help apache?

Thanks for your time.

User avatar
Nux
Posts: 37
Joined: 2013/11/08 12:37:05
Location: Delta Quadrant

Re: apache 2 MPM.

Post by Nux » 2013/11/08 13:19:32

Hello,

In CentOS you choose the MPM to use by editing /etc/sysconfig/httpd.
By default it uses the "prefork" one, if you want to use "worker" stop httpd, uncomment "HTTPD=/usr/sbin/httpd.worker" then start httpd.
--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro

klabaza
Posts: 10
Joined: 2013/11/08 00:22:38

Re: apache 2 MPM.

Post by klabaza » 2013/11/08 15:52:24

Them, wont' matter if we comment/uncomment the settings in
/etc/httpd/config/httpd.conf
We need to touch the file u point me?

Thanks Nux.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: apache 2 MPM.

Post by TrevorH » 2013/11/08 16:06:17

You choose which one to use by editing /etc/sysconfig/httpd
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

klabaza
Posts: 10
Joined: 2013/11/08 00:22:38

Re: apache 2 MPM.

Post by klabaza » 2013/11/08 17:27:34

Thanks all for your sharing.

Post Reply