Check Syntax of your config file:
$ /usr/local/apache/bin/httpd -t
Syntax OK
Verify your installed version number and build date:
$ /usr/local/apache/bin/httpd -v
Server version: Apache/2.0.52
Server built: Sep 28 2004 12:33:10
Verify Installed Modules:
$ /usr/local/apache/bin/httpd -l
Compiled in modules:
core.c
. . .
mod_so.c
Verify Compile Options:
$ /usr/local/apache/bin/httpd -V
Server version: Apache/2.0.52
Server built: Sep 28 2004 12:33:10
Server's Module Magic Number: 20020903:9
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-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 HTTPD_ROOT="/usr/local/apache"
-D SUEXEC_BIN="/usr/local/apache/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
Verify your Virtual Host Configuration:
$ /usr/local/apache/bin/httpd -S
VirtualHost configuration:
. . .
Verify the server is running:
Note: on BSD-based UNIX systems, you need to use "ps -aux" or "ps aux" instead of "ps -ef". $ ps -ef |grep httpd
root 24069 1 0 09:17 ? 00:00:08 /.../httpd -k s
apache 29917 24069 0 15:30 ? 00:00:00 /.../httpd -k s
. . .
|