httpd CMD

1) 가상호스트 설정 내역 확인

[root@localhost mpm]# /usr/local/apache/bin/apachectl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server http://www.msnote.co.kr (/usr/local/apache/conf/extra/httpd-vhosts.conf:3)
port 80 namevhost http://www.msnote.co.kr (/usr/local/apache/conf/extra/httpd-vhosts.conf:3)
Syntax OK

2) 설치시 컴파일된 정적 모듈 리스트
[root@localhost mpm]# /usr/local/apache/bin/apachectl -l
Compiled in modules:
core.c
worker.c
http_core.c
mod_so.c

3) 로드된 모듈 리스트

[root@localhost mpm]# /usr/local/apache/bin/apachectl -M
Loaded Modules:
core_module (static)
mpm_worker_module (static)
http_module (static)
so_module (static)
authn_file_module (shared)
authn_dbm_module (shared)
authn_anon_module (shared)
authn_dbd_module (shared)
authn_default_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_dbm_module (shared)

4) 컴파일된 설정 내역확인

[root@localhost mpm]# /usr/local/apache/bin/apachectl -V
Server version: Apache/2.2.17 (Unix)
Server built: Dec 12 2012 15:55:26
Server’s Module Magic Number: 20051115:25
Server loaded: APR 1.4.2, APR-Util 1.3.10
Compiled using: APR 1.4.2, APR-Util 1.3.10
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with….
-D APACHE_MPM_DIR=”server/mpm/worker”
-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=128
-D HTTPD_ROOT=”/usr/local/apache”
-D SUEXEC_BIN=”/usr/local/apache/bin/suexec”
-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”

5) 구문 (문법) 체크

[root@localhost mpm]# /usr/local/apache/bin/apachectl -t
Syntax OK

Leave your Comment

Your email address will not be published. Required fields are marked *