Apache Prefork/Worker etc.

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
magicwizard
Forum Newbie
Posts: 5
Joined: Sat Oct 15, 2005 3:49 pm

Apache Prefork/Worker etc.

Post 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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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).
Post Reply