Greetings,
I've been tracking the httpd 2.4 dev work that Steve has been merging to
trunk, and tried to do a build on Linux today with the prefork MPM enabled
for apache. I had to include the MP_APR_CONFIG setting.
fred@dev ~/dev/mod_perl-2.0 $ perl Makefile.PL
MP_APXS=/home/fred/dev/httpd24/bin/apxs
MP_APR_CONFIG=/home/fred/dev/httpd24/bin/apr-1-config
Reading Makefile.PL args from @ARGV
MP_APXS = /home/fred/dev/httpd24/bin/apxs
MP_APR_CONFIG = /home/fred/dev/httpd24/bin/apr-1-config
no conflicting prior mod_perl version found - good.
Configuring Apache/2.4.6 mod_perl/2.0.9-dev Perl/v5.14.2
Using Perl 5.014002 w/o ithreads and 'dynamic' mpm httpd.
Failed requirements:
- Perl built with ithreads (build perl with -Duseithreads)
So it looks like the mpm being identified is 'dynamic'. In Apache2::Build:
1221359 gozer # httpd >= 2.3
1221359 gozer if ($self->httpd_version_as_int =~ m/^2[3-9]\d+/) {
1221359 gozer $mpm_name = 'dynamic';
1221359 gozer }
1221359 gozer else {
1221359 gozer $mpm_name = $self->apxs('-q' => 'MPM_NAME');
1221359 gozer }
Looks like that has been around for a while, so I took a look in apxs -q to
see what MPM_NAME variable exists, but it turns out nothing is there. Looks
like it worked with 2.2 though:
fredmoyer@aiko ~ $ apxs -q MPM_NAME
prefork
And 2.4:
fred@dev ~/dev/mod_perl-2.0 $ apxs -q MPM_NAME
apxs:Error: Invalid query string `MPM_NAME'.
Any thoughts on what approach should be used here for httpd 2.4?