The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Built-in Modules

Discussion in 'EasyApache' started by mambovince, Jun 5, 2010.

  1. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
    Hi,
    Would any of you recommend compiling Apache with the following modules:

    MPM Prefork
    MPM Worker

    Any advantages or disadvantages you know of?

    Many thanks,

    - Vincent
     
  2. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
  3. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    An MPM must be selected at build time and without one Apache simply doesn't exist. With that said, the default MPM for *nix (and as used by cPanel when building Apache) is prefork, and most will agree that this the most suitable for the majority of environments.

    Worker can increase the ability of a server to handle many requests, especially in a multi-CPU environment, however prefork is generally considered the more stable option. Prefork is also thread-safe which may or may not be a significant sticking point depending on the application.
     
  4. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I'll mention that on many VPS environments, Worker caused constant Apache crashes and we ended up switching to prefork.
     
  5. mambovince

    mambovince Well-Known Member

    Joined:
    Jan 15, 2005
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    London, UK
    So is there something wrong or unusual in my VPS Apache setup, as when I go to EasyApahce neither the MPM Prefork or MPM Worker options are selected.
    :confused:

    Maybe it's no longer the default?
    I'm using Apache 2.2 if that helps understand the issue.

    - Vincent
     
  6. garrettp

    garrettp Well-Known Member
    PartnerNOC

    Joined:
    Jun 18, 2004
    Messages:
    312
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Vincent,

    It would appear the selection of "MPM Prefork" in the EA3 system is simply redundant because as I mentioned, this will be the default MPM for Apache regardless if that option is selected or not. You can of course select "MPM Worker" or "MPM Event" to override this with the corresponding module.
     
Loading...

Share This Page