Ошибки в выводе Веб-сервера apache — Config variable ${APACHE_LOCK_DIR} is not defined/Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

Однажды при попытке посмотреть какие «Виртуальные хосты» сейчас активны на Веб-сервере apache, я получил следующие ошибки в выводе:

apache2ctl -t -D DUMP_VHOSTS

[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[core:warn] [pid 4514] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[core:warn] [pid 4514] 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}

 

Исправляется это следующими действиями:

source /etc/apache2/envvars 
apache2 -V
service apache2 restart

 

Теперь при просмотре информации Веб-сервера apache, вывод будет правильным:

apache2ctl -t -D DUMP_VHOSTS


VirtualHost configuration:
*:80 apache (/etc/apache2/sites-enabled/000-default.conf:1)

 

 

Понравилась или оказалась полезной статья, поблагодари автора

 

 

ПОНРАВИЛАСЬ ИЛИ ОКАЗАЛАСЬ ПОЛЕЗНОЙ СТАТЬЯ, ПОБЛАГОДАРИ АВТОРА

БесполезноСлабоватоПриемлемоОтличноПревосходно (1 голос(ов), в среднем: 3,00 из 5)
Загрузка...

Оставить ответ

1 × три =

© IT-блог Жаконды All Rights Reserved.
Яндекс.Метрика