1

I am having Ubuntu 14.10 and Apache 2.4. Currently Apache is running default mpm_prefork and I want to change it to mpm_worker.

I followed this Apache enable worker mpm to disable mpm_prefork and enable mpm_worker but when I am restarting Apache, it is giving error:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.

Now this is because PHP 5 doesn't work with mpm_worker so, I followed this How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal? and now I am running fastcgi as shown in phpinfo().

phpinfo

Everything looks fine but again, when I am disabling mpm_prefork and enabling mpm_worker, I am getting this error:

Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe.  You need to recompile PHP.

So I have have to go to default mpm_prefork module to keep the site running. I am not sure what else to be done, any help ?

sotirov
  • 4,379
iCyborg
  • 1,161

0 Answers0