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

postcd

Well-Known Member
Oct 22, 2010
721
21
68
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"
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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).
Hello,

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

Thank you.