Get an error When I change prefork MPM to worker MPM in apache2.4 Ubuntu16.04

Home / Uncategorized / Get an error When I change prefork MPM to worker MPM in apache2.4 Ubuntu16.04

Question:
My apache2.4.18 in Ubuntu 16.04 with prefork MPM Loaded Modules: Apache Loaded Modules

I want to change prefork MPM to worker MPM
sudo a2dismod mpm_prefork
sudo a2enmod mpm_worker
sudo service apache2 restart

Then I get a notice and I can’t restart the Apache:"The apache2 configtest failed
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
apache2.service: Control process exited, code=exited status=1
Failed to start LSB: Apache2 web server."

I try to install the php7.0-fpm, but it doesn’t work for me. What should I do if I want to change prefork to worker ??? how can I fix these? Thanks in advance


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *