How to switch apache mpm prefork to mpm event?

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.

a2dismod ruid2

I got this tip from this page : How to switch from Apache mpm_prefork to mpm_event on Debian/Ubuntu - TellUsTheAnswer