Gentoo Archives: gentoo-user

From: Michael Hampicke <gentoo-user@××××.biz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] threads use flag for apache and php
Date: Sat, 01 Dec 2012 09:32:27
Message-Id: 50B9CE54.9070003@hadt.biz
In Reply to: Re: [gentoo-user] threads use flag for apache and php by William Kenworthy
1 Am 01.12.2012 00:13, schrieb William Kenworthy:
2 > why? - threads "sounds" like a good thing, but is it really if its
3 > optional?
4 >
5
6 Threads - at least for apache - is optional, because you can compile
7 apache with different MPMs (see documentation). MPM_PREFORK for example
8 does not use threads, it forks itself - as opposed to MPM_WORKER which
9 is based on threads.
10
11 So if you set threads, apache is compiled with MPM_WORKER, if not,
12 MPM_PREFORK is used.
13
14 If you are running a threaded apache, and you are choosing to use php as
15 apache module (apache2 use flag) then php with threads is required.