Hi, I have Apache 2.4.48 installed in Ubuntu 20.04 by adding the
ondrej-ppa. When I do
sudo apache2 -M
(and other apache2 commands as well) I get
[Mon Jul 26 19:03:15.930435 2021] [core:warn] [pid 10739] AH00111:
Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 82 of /etc/apache2/apache2.conf:
DefaultRuntimeDir must be a valid directory, absolute or relative to
ServerRoot
The envvars file does define those variables and I didn't touch it from
installation. The only thing I did is to add to the apache2.conf file a
global ServerName directive, because it was complaining by reloading
that it couldn't find the fully qualified domain name.
Now it reloads and restarts fine, but I get that error. The error log
only shows my restarts and reloads, nothing else. I didn't find anything
useful on the net. How could I go about troubleshooting this?
Thanks,
Andrea