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.

Are the Apache/PHP modules on WHM server "thread safe"?

Discussion in 'EasyApache' started by postcd, Apr 29, 2015.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    619
    Likes Received:
    6
    Trophy Points:
    18
    Hello,

    im considering using Apache MPM Worker instead of MPM Prefork (because of Mod_QOS, if anyone think its bad idea to enable Worker just for QoS to work, please comment)

    I read on multiple places that some "modules" are not "thread safe" so it is somehow not good to use them while having Apache MPM Worker in place (this MPM is using threads, not just processes).

    So i want to ask if default WHM installation contains only "thread safe" modules and all modules in EasyApache are also thread safe checked by cPanel? or i should not worry about "thread safe" issue running thread working MPM (Worker)? I read that PHP is not thread safe, so if it can produce any issues with threaded MPM Worker, why its offered in EasyApache?

    PS: currently im using Prefork MPM, in phpinfo() i have: "Thread Safety: disabled"
     
    #1 postcd, Apr 29, 2015
    Last edited: Apr 29, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you elaborate on the specific modules you read about, or the link you are referring to?

    Thank you.
     
Loading...

Share This Page