Gagan Puri wrote:
Hi All,
I have an application in which I need to check whether the apache server is prefork based or worker MPM based. How can I get the model info from web server in my application. Normal commad line way to check this is by simply giving the command apachectl -V. Is there any apache specific api which gives info regading the MPM model of apache web server server.
see ap_mpm_query.
for an example of its use, try
http://marc.theaimsgroup.com/?l=apache-httpd-dev&m=106086674806449&w=2
you can also read through this thread
http://marc.theaimsgroup.com/?t=105688560200001&r=1&w=2
for ideas on why it's probably better to test for the existence of threads as a server property, versus a specific mpm model like worker.
HTH
--Geoff
