'apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

I installed apache2 in my ubutu server 20.04, but when i troubleshoot the syntax by sudo apache2 -t, it gives me the following errro:

 [Sun Apr 17 08:43:12.116347 2022] [core:warn] [pid 34462] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

but the apache2 is running and active status.

if you don't understand my question, please do not discount it, but ask for a specific details so you can give help, thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source