Bug 1182069 - apachectl -v and apachectl -V output
Summary: apachectl -v and apachectl -V output
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Web Server 3
Classification: Retired
Component: httpd
Version: 3.0.0
Hardware: All
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.0.0
Assignee: Jean-frederic Clere
QA Contact: Libor Fuka
URL:
Whiteboard:
Depends On: 1089811 1098952
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-14 11:29 UTC by Libor Fuka
Modified: 2018-11-12 12:15 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-04-02 15:43:15 UTC
Embargoed:


Attachments (Terms of Use)

Description Libor Fuka 2015-01-14 11:29:18 UTC
Description of problem:
There was a RFE to enhanced apachectl -v and apachectl -V output for JWS 3.0

We have this apachectl -v output in JWS 3.0DR1:
Server version: Apache/2.4.6 (Red Hat)
Server built: Jan 13 2015 23:34:59

and from apachectl -V:
Server version: Apache/2.4.6 (Red Hat)
Server built: Jan 13 2015 23:34:59
Server's Module Magic Number: 20120211:24
Server loaded: APR 1.4.8, APR-UTIL 1.5.2
Compiled using: APR 1.4.8, APR-UTIL 1.5.2
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="/etc/httpd24"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/run/httpd/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"

I think its not complete what was requested.

Version-Release number of selected component (if applicable):
JWS 3.0 DR1

Comment 2 Weinan Li 2015-01-27 15:13:59 UTC
These are compiled within httpd executable:

[weli@dhcp-66-78-87 sbin]$ strings httpd | grep Red Hat
grep: Hat: No such file or directory
[weli@dhcp-66-78-87 sbin]$ strings httpd | grep "Red Hat"
Apache/2.4.6 (Red Hat)
Apache/2.4.6 (Red Hat) (Release 40.ep7.el6)
[weli@dhcp-66-78-87 sbin]$ strings httpd | grep "Server compiled with"
Server compiled with....
[weli@dhcp-66-78-87 sbin]$ strings httpd | grep -C 20 "Server compiled with"
fffff.
l$ L
t$(L
|$0H
core_module
so_module
http_module
Dec 19 2014 04:08:36
Server version: %s
Server built:   %s
1.5.2
1.4.8
Architecture:   %ld-bit
Server MPM:     %s
  threaded:
yes (variable thread count)
yes (fixed thread count)
    forked:
yes (variable process count)
yes (fixed process count)
Server compiled with....
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
enabled)
 -D APR_HAS_OTHER_CHILD
 -D DYNAMIC_MODULE_LIMIT=%ld
main.c
Options:
apr_app_initialize()
apr_pool_create()
process
pconf
pcommands
AH00012: %s: %s
/etc/httpd24
conf/httpd.conf
DUMP_VHOSTS
DUMP_RUN_CFG
DUMP_MODULES
DEBUG
plog

I've investigated the building process a little bit and found these messages are scattered across multiple files and then built into 'httpd' executable. To fix this problem, we need to have:

1. The exact information that need to be built into httpd
2. A patch to build these messages into 'httpd'

Jean-Frederic, could you please help on this?


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