Gagan Puri wrote:

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() and AP_MPMQ_foo constants in ap_mpm.h

you can't find out whether it is prefork or worker specifically, but you can find out whether the server forks (both prefork and worker) and whether the server is threaded (worker but not prefork)...




Reply via email to