E:\wamp64\bin\apache\apache2.4.29\bin>httpd -V Server version: Apache/2.4.29 (Win64) Apache Lounge VC15 Server built: Nov 3 2017 11:12:00 Server's Module Magic Number: 20120211:68 Server loaded: APR 1.6.3, APR-UTIL 1.6.1 Compiled using: APR 1.6.3, APR-UTIL 1.6.1 Architecture: 64-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" E:\wamp64\bin\apache\apache2.4.29\bin>httpd -l Compiled in modules: core.c mod_win32.c mpm_winnt.c http_core.c mod_so.c E:\wamp64\bin\apache\apache2.4.29\bin>httpd -M Loaded Modules: core_module (static) win32_module (static) mpm_winnt_module (static) http_module (static) so_module (static) access_compat_module (shared) actions_module (shared) alias_module (shared) allowmethods_module (shared) asis_module (shared) auth_basic_module (shared) auth_digest_module (shared) authn_core_module (shared) authn_file_module (shared) authz_core_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cache_module (shared) cache_disk_module (shared) cgi_module (shared) dir_module (shared) env_module (shared) file_cache_module (shared) include_module (shared) isapi_module (shared) log_config_module (shared) mime_module (shared) negotiation_module (shared) rewrite_module (shared) setenvif_module (shared) userdir_module (shared) vhost_alias_module (shared) php7_module (shared) E:\wamp64\bin\apache\apache2.4.29\bin>
$command = 'start /b /wait '.$c_apacheExe.' -t -D DUMP_MODULES'; ob_start(); passthru($command); $output = ob_get_contents(); ob_end_clean();et ensuite, on traite le résultat pour un affichage correct.