When apache forks a process for mod-php, how long does it stay alive? Does the process die as soon as the response is sent, or will it stay alive until the browser receives the full response?
If you're using mod-php, then you're likely using the
Look for the part that looks like this (your values may vary):
The bit you're asking about is handled by
More details on the prefork MPM here: http://httpd.apache.org/docs/2.2/mod/prefork.html
httpd doesn't fork a process for mod_php. It forks a process for itself, which has mod_php embedded in it. The child will stay alive until it has fulfilled