Server Guru

Just another Tech Blog

LinuxUbuntuWordPress

DefaultRuntimeDir must be a valid directory

 

If this solution helped you then please click on any of the ads on this page to support us.

 

While checking the Apache 2 modules using the following command, you may encounter an error.

 
root@server:/etc/apache2# apache2 -L
[Mon MarĀ  20:03:57.996420 2018] [core:warn] [pid 6754] xxxx: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 99 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

 

Solution : You are using the wrong command to check the modules.

 

Please use the following command for getting the correct output.

 
apache2ctl -M

 

If this solution helped you then please click on any of the ads on this page to support us.

Leave a Reply