Bug 61009 - httpd -V runs a configtest if MPM DSOs are enabled
Summary: httpd -V runs a configtest if MPM DSOs are enabled
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.25
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-19 19:35 UTC by Jacob Champion
Modified: 2017-04-19 20:39 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacob Champion 2017-04-19 19:35:26 UTC
With a static MPM, `httpd -V` will correctly print out the compiled settings, even if the configuration file is invalid or completely missing. With MPM DSOs, an invalid configuration will prevent the compiled settings from being printed, even if we know all of them.

An example I run into commonly is in normal HTTPS operation, where the private key is stored in a folder that's only accessible by the superuser. This prevents non-superusers from being able to run `httpd -V`... but only if they're using dynamic MPMs.

I don't think a configtest is ever appropriate during -V operation. Users who want a configtest can run a configtest. In the situation where we can figure out which MPM is in use during ap_read_config(), we should immediately print what we know and exit. Even if we can't read the configuration at all, we can print out the settings we *do* know, and mark the MPM as [unknown] or something.
Comment 1 Jacob Champion 2017-04-19 20:39:17 UTC
Fix checked into trunk at r1791975.