I have configured FastCGI and PHP5-FPM to work on ubuntu, Which is working fine.
But i installed "apache2 worker mpm" module and wanted to configure and replace "prefork mpm" which is default in apache2.
All i found was in CentOS at /etc/sysconfig/httpd
just putting HTTPD=/usr/sbin/httpd.worker
will make "worker mpm" enabled.
-
How do we enable "worker mpm" in Ubuntu?
-
Also when i list the compiled modules of apache
"/usr/sbin/apachectl -l"
it wont list"prefork.c"
which said to be listing since we are using it by default. But when i do"/usr/sbin/apache2 -V | grep MPM"
it shows "Server MPM: prefork" can some one explain this please?
$ /usr/sbin/apache2 -V | grep MPM
Server MPM: prefork
phpinfo();
Server API : FPM/FastCGI
Best Answer
After some time of working i did it myself. You can find the steps below.
Check which MPM apache is currently running:
List Available MPM Modules (Make sure mpm_worker is listed)
List Enabled MPM Modules (If mpm_worker is not enabled we should enable it and disable the mpm_prefork module)
Disable MPM_PREFORK module
Enable MPM_WORKER module
To check if Apache is running on MPM WORKER
If you get this error after executing these commands:
Try to remove libapache2 package: