On 6 March 2014 00:44, Andy Colson <a...@squeakycode.net> wrote: > On 03/05/2014 01:56 PM, Fred Moyer wrote: >> >> Recent testing on the 2.4 threading branch has uncovered the issue >> where the httpd worker type cannot be determined in Apache2::Build for >> the reason that MPM_NAME is no longer included in the output of apxs >> -q: >> >> fredmoyer@aiko ~/dev $ ./httpd24/bin/apxs -q | grep MPM >> fredmoyer@aiko ~/dev $ >> >> This seems to be a blocking issue in getting the 2.4 threading branch >> to build on prefork based environments. Soliciting suggestions here >> for a solution. >> >> The httpd executable on Linux provides this information for the >> default server mpm, but I do not know the implications of this >> approach on Windows. >> >> fredmoyer@aiko ~/dev $ ./httpd24/bin/httpd -V >> Server version: Apache/2.4.7 (Unix) >> Server built: Mar 5 2014 11:55:08 >> Server's Module Magic Number: 20120211:27 >> Server loaded: APR 1.5.0, APR-UTIL 1.5.3 >> Compiled using: APR 1.5.0, APR-UTIL 1.5.3 >> Architecture: 64-bit >> Server MPM: prefork >> threaded: no >> forked: yes (variable process count) >> Server compiled with.... >> -D APR_HAS_SENDFILE >> -D APR_HAS_MMAP >> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) >> -D APR_USE_SYSVSEM_SERIALIZE >> -D APR_USE_PTHREAD_SERIALIZE >> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT >> -D APR_HAS_OTHER_CHILD >> -D AP_HAVE_RELIABLE_PIPED_LOGS >> -D DYNAMIC_MODULE_LIMIT=256 >> -D HTTPD_ROOT="/Users/fredmoyer/dev/httpd24" >> -D SUEXEC_BIN="/Users/fredmoyer/dev/httpd24/bin/suexec" >> -D DEFAULT_PIDLOG="logs/httpd.pid" >> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" >> -D DEFAULT_ERRORLOG="logs/error_log" >> -D AP_TYPES_CONFIG_FILE="conf/mime.types" >> -D SERVER_CONFIG_FILE="conf/httpd.conf" >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org >> For additional commands, e-mail: dev-h...@perl.apache.org >> > > > Should this really be compile time? You can switch the MPM in config and > restart apache. How about always building for worker/event mpm, and then > "do the right thing" when we are under prefork? > > And isn't windows always using some windows_mpm? You never really wanna > change that do you? So the windows build can hard code something and we can > forget about it. Its only *nix that switches, right? > >
Yes, the Windows build is always the WinNT MPM as far as I know, so this isn't a problem (for a change!) on Windows: C:\Dev\Temp\apache247d\bin>httpd -V Server version: Apache/2.4.7 (Win32) Server built: Feb 17 2014 8:17:55 Server's Module Magic Number: 20120211:27 Server loaded: APR 1.5.0, APR-UTIL 1.5.3 Compiled using: APR 1.5.0, APR-UTIL 1.5.3 Architecture: 32-bit Server MPM: WinNT threaded: yes (fixed thread count) forked: no Server compiled with.... -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled) -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=256 -D HTTPD_ROOT="/apache" -D SUEXEC_BIN="/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error.log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org For additional commands, e-mail: dev-h...@perl.apache.org