Hello as title says how i can switch mpm prefork to event? i tried follow some guides without success.
I’m trying change this because i’m using mpm event on my old server and i read performs it better than others (worker-prefork) with multiple concurrent connections and consume less resources.
@donko Can you write what all you tried ? What were the errors you faced ?
Switching to mpm_event is fairly straightforward, you do a2dismod phpxx and then do
a2dismod mpm_prefork
a2enmod mpm_event
but please be warned, you cannot use mod_php based templates after this. HestiaCP does not support MPM_event out of the box
As I said before, better if you try this on a test server and just post if any problems so we can help
A short question, I also want to change to MPM event. So any other valuable suggestion regarding this in addition to above. Does above works only when Apache is installed or I can use it when I have nginx + apache both installed.
Yes I still don’t get it since 3 years ago. Why mpm prefork is still used in vestacp until this day. Even that 3years old thread in vestacp forum is not replied yet
Even in apache official docs they do not recommend it anymore.
Thanks donko for update. I agree with maman. Any special advantages of mpm prefork over mpm event. If it is so easy to change why not make it default so that everyone has good resource usages.
I am using Ubuntu 20 and when I followed these steps to enable MPM_event, my website started giving 500 error ( Internal Server Error).
So, I had to disable ruid2 to fix the error.