Introduction
I came across a few warnings when I wanted to list the modules of an
apache 2.4.7. server on an Ubuntu 14.04 server.
Error
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# /usr/sbin/apache2 -t -D DUMP_MODULES
[Tue Oct 07 10:11:13.345747 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOCK_DIR} is not defined
[Tue Oct 07 10:11:13.345822 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_PID_FILE} is not defined
[Tue Oct 07 10:11:13.345839 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_RUN_USER} is not defined
[Tue Oct 07 10:11:13.345848 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_RUN_GROUP} is not defined
[Tue Oct 07 10:11:13.345868 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.351985 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352216 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352232 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352335 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352349 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352405 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352419 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352473 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
[Tue Oct 07 10:11:13.352488 2014] [core:warn] [pid 4017] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
|
This shocked me, but analyzing the server further showed me that
everything was up and running.
What’s going on?
There is nothing going on, except that if you request output from
the /usr/sbin/apache2
binary directly, the /etc/apache2/envvars
file isn’t sourced.
Running the same command with apache2ctl
gives correct output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# apachectl -t -D DUMP_MODULES
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
alias_module (shared)
auth_basic_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
filter_module (shared)
mime_module (shared)
mpm_codefork_module (shared)
negotiation_module (shared)
php5_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
|