httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: getting MPM model of apache web server
Date Mon, 08 Sep 2003 12:36:36 GMT


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


Mime
View raw message