You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Konstantin Boyandin <li...@boyandin.info> on 2017/01/18 04:39:01 UTC
[users@httpd] Apache 2.4.18: warnings issued since environment vars definitions
isn't always loaded
Hello,
OS: Ubuntu 16.04, Apache version: 2.4.18 (latest Apache from default
repository).
Command
sudo apache2 -M
writes spurious lines like this:
[Wed Jan 18 03:32:29.510875 2017] [core:warn] [pid 11564] AH00111:
Config variable ${APACHE_LOG_DIR} is not defined
even though the mentioned variable *is* defined in /etc/apache2/envvars
If I load that file directly, i.e. via command like
. /etc/apache2/envvars
the above warning doesn't happen. Is there standard way to force apache2
loading its environment vars definition file automatically? The message
is misleading and, AFAIK, it's never written in manuals that Apache only
gets those definitions loaded if initscript/systemctl is executed.
Thanks.
Regards,
Konstantin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4.18: warnings issued since environment
vars definitions isn't always loaded
Posted by Eric Covener <co...@gmail.com>.
On Tue, Jan 17, 2017 at 11:39 PM, Konstantin Boyandin
<li...@boyandin.info> wrote:
> sudo apache2 -M
>
> writes spurious lines like this:
>
> [Wed Jan 18 03:32:29.510875 2017] [core:warn] [pid 11564] AH00111: Config
> variable ${APACHE_LOG_DIR} is not defined
http://httpd.apache.org/docs/2.4/programs/apachectl.html
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4.18: warnings issued since environment
vars definitions isn't always loaded
Posted by Vincent Veyron <vv...@wanadoo.fr>.
On Wed, 18 Jan 2017 11:39:01 +0700
Konstantin Boyandin <li...@boyandin.info> wrote:
>AFAIK, it's never written in manuals that Apache only
> gets those definitions loaded if initscript/systemctl is executed.
>
>
It actually is written :
http://askubuntu.com/questions/146688/why-doesnt-apache2-respect-my-envvars-file#147065
--
Bien à vous, Vincent Veyron
https://marica.fr
Gestion des contentieux juridiques, des contrats et des sinistres d'assurance
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache 2.4.18: warnings issued since environment
vars definitions isn't always loaded
Posted by Rainer Canavan <ra...@sevenval.com>.
> sudo apache2 -M
>
> writes spurious lines like this:
>
> [Wed Jan 18 03:32:29.510875 2017] [core:warn] [pid 11564] AH00111: Config
> variable ${APACHE_LOG_DIR} is not defined
>
> even though the mentioned variable *is* defined in /etc/apache2/envvars
apache2 is the binary - you're not really supposed to use that directly when
starting the httpd service. The envvars script is used by the
apache2ctl script,
not the httpd (=apache2) binary itself.
rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org