Page 1 of 1

Apache Prefork/Worker etc.

Posted: Sun Apr 30, 2006 7:15 pm
by magicwizard
Hi,
when compiling the apache-server, i saw that there are multiple mpm-* available like prefork or worker.
I did some search on the web and noticed that these are for multithreading etc. - But which one should i choose to get the best performance with php?

Posted: Wed May 03, 2006 3:54 am
by Weirdan
that depends on how you integrate php into apache. mod_php might not be thread-safe (depending on the extensions used), so it's not recommended to use multithreaded mpm with mod_php. If you use php as CGI/FastCGI it should be fine to use any mpm (because php is running as a separate process in this scenario).