Bug 158225 - httpd -S (show settings) provides no output
httpd -S (show settings) provides no output
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: httpd (Show other bugs)
3
All Linux
medium Severity low
: ---
: ---
Assigned To: Joe Orton
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 14:30 EDT by Andrew Taylor
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 2.0.54-10
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-05 10:13:16 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Andrew Taylor 2005-05-19 14:30:45 EDT
Running "httpd -S" to diagnose virtual host errors doesn't provide any output. 
This is related to bug 145822 and is caused by SELinux restrictions on accessing
the terminal.

A work around is to pipe stderr through cat: "httpd -S 2>&1 | cat".

It would be nice if Fedora Core provided an alternate way to run httpd
interactively, without swallowing output.  e.g. "apachectl showsettings"
Comment 1 Joe Orton 2005-05-20 10:34:20 EDT
I'd rather not change the apachectl interface vs upstream.  Would e.g.

  "service httpd dumpconfig"

be OK?  I think this would probably be useful.
Comment 2 Andrew Taylor 2005-05-20 12:40:19 EDT
That would be ok for me.  One problem with this solution (and the apachectl fix,
too) is that it isn't very discoverable.  Someone familiar with apache, or
having read the apache docs, will try "httpd -S" and expect it to work.  And
without console output, it isn't possible to redirect them to an alternative.

Maybe the bug is really part of the SELinux policy?  Can it not allow httpd to
output to the terminal if started with interactive commandline parameters?
Comment 3 Joe Orton 2005-09-05 10:13:16 EDT
Yes, this is caused by the SELinux policy; in fact in FC4 the policy was relaxed
so this does work by default.

Note You need to log in before you can comment on or make changes to this bug.