Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to switch Apache MPM from Prefork to Event?

How to switch MPM Prefork to Event on Apache 2.4, Debian 8? I have already installed php-7 and php-fpm but can not find a complete tutorial on switching MPM Prefork to Event. I tried this but MPM Prefork is still running instead of Event.

like image 791
Rustam Paskaev Avatar asked Jan 30 '26 11:01

Rustam Paskaev


1 Answers

I did the following steps one by one:

su
export PATH=$PATH:/sbin
a2dismod php7.1
a2dismod mpm_prefork
a2enmod mpm_event
a2enmod proxy_fcgi
a2enconf php7.1-fpm
systemctl restart apache2

If php7.1-fpm is not installed, you can install it before the mentioned steps using apt-get install php7.1-fpm or you can check if it is installed using dpkg -l {package_name}

finally, you can make sure of what you did using: apachectl -V

like image 101
s.abbaasi Avatar answered Feb 03 '26 10:02

s.abbaasi