> From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] > > > > > It would be nice > > > > if there was an apxs flag that would return the MPM type. > > > > > > +1 > > > > There is. -q will query for any value in config_vars.mk, and MPM_NAME > > is in that file. So `apxs -q MPM_NAME` will return the configured MPM > > type. > > Ah right. Is there a way to check at runtime as well? I've added a PHP > configure check now to the apache2filter sapi module so it will come up > non-threaded by default if it sees Apache2-prefork. Just a bit worried > about someone changing their MPM after the fact, so perhaps a runtime > check is needed as well.
Runtime is harder, but you can just use ap_mpm_query to get the MPMs characteristics. This won't give you the MPM name, but it will let you know if the MPM is threaded or not. Ryan