I upgraded the server from Debian 7 to Debian 8. As a result I have multiple issues with Apache 2.4.10
When doing:
apache2 -S
The result:
AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
AH00111: Config variable ${APACHE_PID_FILE} is not defined
AH00111: Config variable ${APACHE_RUN_USER} is not defined
AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
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}
The content of envvars
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
export APACHE_RUN_DIR=/var/run/apache2$SUFFIX
export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
This is the default, so I do not know why it is not working.
So far I have only found contradictory solutions, which by the way all did not help or I did not understand.
Apache is however running but obviously spamming it's error log. I am very much confused and I cheerfully await for being downvoted for asking such a stupid question.