Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not defined

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not defined相关的知识,希望对你有一定的参考价值。

今天升级kali 导致apache 无法启动,问题如下:

[email protected]:~# apache2 -k start

[Sat Jan 21 21:01:16.273933 2017] [core:warn] [pid 3248] 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
或:
[email protected]:/etc/apache2# apache2 -k start
[Sat Jan 21 22:05:56.705639 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Sat Jan 21 22:05:56.705819 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Sat Jan 21 22:05:56.705866 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Sat Jan 21 22:05:56.705919 2017] [core:warn] [pid 10577] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jan 21 22:05:56.713958 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jan 21 22:05:56.714454 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Sat Jan 21 22:05:56.715159 2017] [core:warn] [pid 10577:tid 3073427200] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00543: apache2: bad user name ${APACHE_RUN_USER}


这是由于升级后apache 配置文件变化,没有导入新的apache 环境变量。

解决办法 :

source /etc/apache2/envvars

. /etc/apache2/envvars


本文出自 “老农学 IT” 博客,请务必保留此出处http://peasant.blog.51cto.com/12131934/1893784

以上是关于Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not defined的主要内容,如果未能解决你的问题,请参考以下文章

Mongoose update() 真正更新了啥?

关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails

关于mysql中[Err] 1451 -Cannot delete or update a parent row: a foreign key constraint fails

GET https://registry.npmmirror.com/update-Broswerslist-db ... error (ERR_PNPM_FETCH_404)

Apache SSL chrome 错误:NET::ERR_CERT_AUTHORITY_INVALID

无法加载资源:net::ERR_CONNECTION_RESET 与 Apache 2.4 和 Chrome